Synchronising Classpaths [message #65982] |
Tue, 24 June 2003 11:11 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Temple_Cloud.hotmail.com
Hello,
I have just started using Eclispe, it seems excellent. However, I still
want to use a root ant build file for compilation and deployment tasks
when I move the distribution out of eclipse and deploy it. Currently I
have defined the required classpath in my ant build file; but to use
Eclispe effectively, I also have to set the same path in eclispe
(.classpath). Is there an automated way in eclispe to syncronise my
build.xml classpath with the .classpath file?
Alternatively, how can I get eclipse to build using an external compiler?
Cheers
Temple
PS: Apologies if this is the wrong mailing list; or a similar post has
been answered elswhere.
|
|
|
Re: Synchronising Classpaths [message #69708 is a reply to message #65982] |
Sun, 29 June 2003 20:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: cagatayk.stop.acm.org
Temple Cloud wrote:
> Hello,
>
> I have just started using Eclispe, it seems excellent. However, I still
> want to use a root ant build file for compilation and deployment tasks
> when I move the distribution out of eclipse and deploy it. Currently I
> have defined the required classpath in my ant build file; but to use
> Eclispe effectively, I also have to set the same path in eclispe
> (.classpath). Is there an automated way in eclispe to syncronise my
> build.xml classpath with the .classpath file?
> Alternatively, how can I get eclipse to build using an external compiler?
>
> Cheers
>
> Temple
>
> PS: Apologies if this is the wrong mailing list; or a similar post has
> been answered elswhere.
>
The problem of building a set of Eclipse projects independent of Eclipse
itself has hit me a couple of times before. I suppose the easiest way to
go is use Eclipse Ant Runner in command-line to run the Ant scripts and
use the Ant tasks defined by Eclipse to build your projects. This has
the advantage of using your already available .project and .classpath
files, since the build is still being done by Eclipse builders
themselves. The command line looks something like this:
java -cp startup.jar org.eclipse.core.launcher.Main -application
org.eclipse.ant.core.antRunner -buildfile build.xml
If your projects are Eclipse plugins, PDE provides a couple additional
Ant tasks to generate individual build scripts and fetch them from CVS.
Unfortunately you will still have to create the archive files yourself
which means your build script will still have to know about the output
directories. I don't know of an Ant task to run the Jar Export for a
given .jardesc file, that would have helped.
Until someone develops a plugin to generate Ant scripts for Java
projects or integrates Maven with Eclipse, writing build scripts by hand
seems unavoidable.
|
|
|
Re: Synchronising Classpaths [message #69748 is a reply to message #65982] |
Sun, 29 June 2003 23:21 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: cagatayk.stop.acm.org
Temple Cloud wrote:
> Hello,
>
> I have just started using Eclispe, it seems excellent. However, I still
> want to use a root ant build file for compilation and deployment tasks
> when I move the distribution out of eclipse and deploy it. Currently I
> have defined the required classpath in my ant build file; but to use
> Eclispe effectively, I also have to set the same path in eclispe
> (.classpath). Is there an automated way in eclispe to syncronise my
> build.xml classpath with the .classpath file?
> Alternatively, how can I get eclipse to build using an external compiler?
>
> Cheers
>
> Temple
>
> PS: Apologies if this is the wrong mailing list; or a similar post has
> been answered elswhere.
>
Forgot to add: You can search Eclipse online help for "Ant tasks" to see
which tasks are available and for more detailed information.
|
|
|
Powered by
FUDForum. Page generated in 0.04206 seconds