Where are the eclipse product build scripts stored? - eclipse

i'm exporting an eclipse product with the eclipse Product export wizard. when i run this wizard a lot of build scripts are generated and executed - i want to re-use these build scripts for my p2e-build. where does eclipse store these build scripts?

The files for the build are created in the root folder of the project containing the xxx.product file you are using. They only exist while the build is running. The main file is a build.xml Ant script.

Related

How to generate build file for project in Netbeans

I know eclipse can automatically create a build file for a given project through its inbuilt wizard (Export->General->Ant File).
But wondering how to do the same if my project is in Netbeans.
Does NetBeans also provide a similar wizard screen to create build file. If not, any other way around.?
NetBeans uses Ant as its build system. Ant build script is already there (unless you used Maven project type).
Some related questions are linked in How do I build ant's build.xml using NetBeans?
I could not find to create build file from Netbeans. But found a workaround, by creating a build for my project in eclipse and then modifying it to suit to netbeans project structure.

Automatic Build for Non-Java Eclipse Project

I have a project that contains xml files. I also have an Ant build in that project to generate documentation based on the xml files. The Ant build calls a Ruby script for generation.
I would like a way run that Ant build after the modification of any resource in the "{project}/xml" folder. I know that I can right click on the build.xml and Run As->Ant Build, but I want it to be more like the incremental build for Java projects. I have tried creating a builder, importing the Ant build and setting up relevant resources, but when I make a change to the XML file, a build does not start. I have "Build Automatically" checked for the project as well.
This must be possible. What am I missing?
A custom builder will only run when a file is saved that is in a source directory. Make sure the /xml folder is included as a source location in the Project Properties, Java Build Path.

Generate Jar in netbeans 7.1

I am using netbeans 7.1 (new to it). I would like to know how to export our projects as a .jar file (though I have searched a lot in Internet).
Many times ./dist folder itself is not created, even though it is created, I see only .zip files (not jar). It would be great if one can help me out in this aspect. Seems like in earlier version of netbeans, the jar would be available in ./dist folder.
Do this before search :) (right click the project > Clean and Build)
When you use the Clean and Build command, the IDE runs a build script that performs the following tasks:
Deletes any previously compiled files and other build outputs.
Recompiles the application and builds a JAR file containing the compiled files.
There is no difference in Netbeans 7.1, the jar will be in the dist folder :)

How to refresh a eclipse project built from ant build file?

I created a new project in eclipse using an existing ant build file (using the eclipse feature).
Is there a way to refresh the project, if the ant build file is modified?
For example, there were new build path dependencies added to the build.xml but in eclipse those files were not added to the project build path.
I believe once the project has been created you have to keep them up to sync manually. Either that, or delete the project in eclipse and create a New project from the newly updated ant file.

How do I create a WAR file using NetBeans' generated ant script?

I'm trying to configure an automated build process, and I need to get a WAR file to deploy to Tomcat. The project was created in Netbeans, which automatically generates an ant script. I think when I click "Clean and Build Project" from the menu it runs a series of ant targets and generates the WAR that I need. So does anyone know which ant targets Netbeans runs when you click "Clean and Build Project". My theory is that I can just run the same targets on my own. Does that make sense or is there a better way to do it? Thanks.
You can run the 'dist' target to generate the war file that you can distribute to Tomcat. If you ant to do the equivalent of 'Clean and Build', you can run 'ant clean dist'.