Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Ant support fails to expand properties with references
Eclipse Ant support fails to expand properties with references [message #87494] Wed, 20 August 2003 23:10 Go to next message
Eclipse UserFriend
Originally posted by: andrealguero.hotmail.com

I have a default properties file that has a series of incrementally
built paths:

olsweb.dir=OLSWeb
web.dir=${olsweb.dir}/Web Content
webinf.dir=${web.dir}/WEB-INF
....

The properties file is referenced from my build.xml like so:

<property file="default.properties"/>

This works correctly when executed from the command line using Ant
1.5.3.1. When I run this build file from within Eclipse, I get errors
from Ant tasks when they attempt to use the properties because they are
unexpanded. For example:

[javac] BUILD FAILED: file:C:/Development/OBTest/build.xml:33:
destination directory "C:\Development\OBTest\${webinf.dir}\classes" does
not exist or is not a directory

I could not locate any info in the doc, readme, or ant readme for
1.5.3.1 I'm not sure how Eclipse invokes Ant such that it would behave
differently. Anyone else experienced this?

Thanks,
-Andre'
Re: Eclipse Ant support fails to expand properties with references [message #87509 is a reply to message #87494] Wed, 20 August 2003 23:58 Go to previous message
Eclipse UserFriend
Which Eclipse are you using?
In the 3.0 stream I cannot reproduce your problem
My test:
<project default="test">
<property file="default.properties"/>
<target name="test">
<echoproperties/>
</target>
</project>

Relevant output:
[echoproperties] webinf.dir=OLSWeb/Web Content/WEB-INF
[echoproperties]
java.library.path=c\:\\j2sdk1.4.2\\bin;.;C\:\\WINDOWS\\Syste m32;C\:\\WINDOWS
;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:\\WINDOWS\\System32\ \Wbem
[echoproperties] web.dir=OLSWeb/Web Content
[echoproperties] java.specification.name=Java Platform API Specification
[echoproperties] java.class.version=48.0
[echoproperties] olsweb.dir=OLSWeb

If you continue to have trouble please log a reproducible bug report against
Platform-Ant

Thanks
Darins

"Andre Alguero" <andrealguero@hotmail.com> wrote in message
news:bi1d8e$b4$1@eclipse.org...
> I have a default properties file that has a series of incrementally
> built paths:
>
> olsweb.dir=OLSWeb
> web.dir=${olsweb.dir}/Web Content
> webinf.dir=${web.dir}/WEB-INF
> ...
>
> The properties file is referenced from my build.xml like so:
>
> <property file="default.properties"/>
>
> This works correctly when executed from the command line using Ant
> 1.5.3.1. When I run this build file from within Eclipse, I get errors
> from Ant tasks when they attempt to use the properties because they are
> unexpanded. For example:
>
> [javac] BUILD FAILED: file:C:/Development/OBTest/build.xml:33:
> destination directory "C:\Development\OBTest\${webinf.dir}\classes" does
> not exist or is not a directory
>
> I could not locate any info in the doc, readme, or ant readme for
> 1.5.3.1 I'm not sure how Eclipse invokes Ant such that it would behave
> differently. Anyone else experienced this?
>
> Thanks,
> -Andre'
>
Previous Topic:Newbie question: using existing classes
Next Topic:Plugin for enabling Design view on HTML and JSP files
Goto Forum:
  


Current Time: Thu May 08 21:22:45 EDT 2025

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

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

Back to the top