Message Boards
Threads [ Previous | Next ]
Need to use ant to produce build.xml, how?
Need to use ant to produce build.xml, how? Ginni Machamer 1/21/09 1:52 PM
RE: Need to use ant to produce build.xml, how? Jack Kennedy 1/21/09 2:01 PM
RE: Need to use ant to produce build.xml, how? Ginni Machamer 1/21/09 3:18 PM
Need to use ant to produce build.xml, how?
1/21/09 1:52 PM
In looking at my skyway project, I do not see how to generate an ant build script. Can someone instruct me on this? I searched the skyway wiki, but found nothing.

Thanks,
Ginni
RE: Need to use ant to produce build.xml, how?
1/21/09 2:01 PM as a reply to Ginni Machamer.
Eclipse has a default capability to generate a basic ant build file for a project.

You should be able to right click on the project / export / general/ Ant Build Files.

This likely will not generate everything you need, but it should generate the basic build file.

The other handy thing to know is that you should be able to extend this generated build file by creating your own build file in the same directory and putting a magic "header" in your extended file.

Then re-run the export and the and builder will generate a build.xml that imports your build file.

This makes it so that you can consistently re-export the ant build file without overwriting your own additions.

The magic key at the top of the file is:
<?eclipse.ant.import?>

So the top of your extended file should look like:

?eclipse.ant.import?>
<project basedir="." default="build"> or similar.

Hope this helps.

JK
RE: Need to use ant to produce build.xml, how?
1/21/09 3:18 PM as a reply to Jack Kennedy.
Thank you very much!
© Copyright 2001-2010 Skyway Software Inc. All Rights Reserved