Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How do I use the Eclipse compiler from within a standalone ANT?
How do I use the Eclipse compiler from within a standalone ANT? [message #207981] Sun, 26 June 2005 19:21 Go to next message
Eclipse UserFriend
Originally posted by: ggerard.ggerard.com

Hi,

We're using serialization and are running into problems loading a
serialized dataset because the continuous build uses javac and the
developer builds typically use Eclipse.

Aside from removing serialization (on the list of things to fix but not
high), what are my options?

I'd like to just be able to use the JDT's compiler directly but don't
know how to set it up. Googled a bit for a solution but nothings's
worked so far. Now I cry "Uncle!" and ask the group.

If it helps, I'm using Eclipse 3.1RC4.

greg
Re: How do I use the Eclipse compiler from within a standalone ANT? [message #207997 is a reply to message #207981] Sun, 26 June 2005 21:50 Go to previous messageGo to next message
Eclipse UserFriend
Set the magic Ant property "build.compiler":
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

To use this type of build in a separate JRE from Eclipse you will need to
add the org.eclipse.jdt.core_3.1.0.jar and the jdtCompilerAdapter.jar it
contains to the Ant runtime classpath. There is no such requirement is you
run your Ant build in the same JRE as Eclipse (see the JRE tab for your Ant
build within Eclipse).

HTH
Darins

"Gregory Gerard" <ggerard@ggerard.com> wrote in message
news:d9nd93$eds$1@news.eclipse.org...
> Hi,
>
> We're using serialization and are running into problems loading a
> serialized dataset because the continuous build uses javac and the
> developer builds typically use Eclipse.
>
> Aside from removing serialization (on the list of things to fix but not
> high), what are my options?
>
> I'd like to just be able to use the JDT's compiler directly but don't know
> how to set it up. Googled a bit for a solution but nothings's worked so
> far. Now I cry "Uncle!" and ask the group.
>
> If it helps, I'm using Eclipse 3.1RC4.
>
> greg
Re: How do I use the Eclipse compiler from within a standalone ANT? [message #208142 is a reply to message #207997] Tue, 28 June 2005 18:26 Go to previous message
Eclipse UserFriend
Originally posted by: ggerard.ggerard.com

Excellent! Thanks!

greg

Darin Swanson wrote:
> Set the magic Ant property "build.compiler":
> <property name="build.compiler"
> value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
>
> To use this type of build in a separate JRE from Eclipse you will need to
> add the org.eclipse.jdt.core_3.1.0.jar and the jdtCompilerAdapter.jar it
> contains to the Ant runtime classpath. There is no such requirement is you
> run your Ant build in the same JRE as Eclipse (see the JRE tab for your Ant
> build within Eclipse).
>
> HTH
> Darins
>
> "Gregory Gerard" <ggerard@ggerard.com> wrote in message
> news:d9nd93$eds$1@news.eclipse.org...
>
>>Hi,
>>
>>We're using serialization and are running into problems loading a
>>serialized dataset because the continuous build uses javac and the
>>developer builds typically use Eclipse.
>>
>>Aside from removing serialization (on the list of things to fix but not
>>high), what are my options?
>>
>>I'd like to just be able to use the JDT's compiler directly but don't know
>>how to set it up. Googled a bit for a solution but nothings's worked so
>>far. Now I cry "Uncle!" and ask the group.
>>
>>If it helps, I'm using Eclipse 3.1RC4.
>>
>>greg
>
>
>
Previous Topic:Generic type parser
Next Topic:Eclipse 3.1 RC4, Java Editor, sudden change of keyboard mapping...
Goto Forum:
  


Current Time: Mon Jun 02 14:22:49 EDT 2025

Powered by FUDForum. Page generated in 0.02740 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top