Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » conveting program to use ANT -- how can one see how Eclipse programs/projects(Eclipse and ANT)
conveting program to use ANT -- how can one see how Eclipse programs/projects [message #639697] Wed, 17 November 2010 09:15 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: November 2010
Junior Member
Hello,

I've a question about Eclipse and ANT. Currently I develop on a Wndows XP system and Eclipse magically compiles everything for me. Afterwards we copy the created .class files to the test and production machine were everything is started using batch files. Now I want to automatize this want to created the class files on the test/production machine. I've created an ANT build file for this but not everything goes as I want.

It would help if I could see how eclipse builds the classes. Using buildall or running a profile which builds and runs part of the program. Is there a way to see what Eclipse compiles. I know it uses the .classpath. When running a program using Eclipse you can in debugmode see exactly how the Java program is started from the commandline. I was looking for something identical for the build process but can't seem to find it. Have google but to no avail.

Any hint/pointers/examples are appreciated.

Jan
Re: conveting program to use ANT -- how can one see how Eclipse programs/projects [message #639732 is a reply to message #639697] Wed, 17 November 2010 10:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6850
Registered: July 2009
Location: Ottawa
Senior Member

Are you building just java projects or plugin projects?

For a java project, you can use File>Export...>General>Ant buildfile to
have eclipse generate a build.xml that taken from its properties and
classpath.

You need an equivalent env on your server that would allow you to
compile. I usually run a buildfile with my eclipse:

eclipse/eclipse -noSplash \
-application org.eclipse.ant.core.antRunner
-buildfile $(pwd)/z.ex.gen/build.xml

But in theory just ant+the correct properties would do.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: conveting program to use ANT -- how can one see how Eclipse programs/projects [message #639925 is a reply to message #639697] Thu, 18 November 2010 07:38 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: November 2010
Junior Member
Hello Paul,

Thanks very much for the fast reply.

I only need to compile java proejcts. I've succesfully created a build file and now I'm gonna change it for my situation.

A question: a buildfile in my Eclipse (3.4 plain) is shown as an XML file (in the ant editor). What I optinally would like to see is a graphical overview of all dependecies etc. Do I need to install an extra plugin for Eclipse. So far I've found things like Grand and Vizant but I would like to use Eclipse for it (main dev env).

Greetz,
Jan
Previous Topic:Re: Is "Open Type" feature extensible?
Next Topic:Errors with extends class
Goto Forum:
  


Current Time: Wed Apr 23 17:52:24 EDT 2014

Powered by FUDForum. Page generated in 0.01671 seconds