You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joshua Kneubuhl <jo...@demandtec.com> on 2002/04/30 20:01:02 UTC

in .properties with Windows paths? (/ vs \\)

Hi everyone, 

I have some java code that references file paths from a .properties file.  I'm currently using ant to do some token replacement based on absolute paths, and it is causing some troubles when running from NT.  

For instance, I have a foo.property file:

some.exec.path=@SOME_TOKEN@

and java code:
	String execPath = System.getProperties().getProperty("some.exec.path");
	System.out.println("I am about to Runtime.exec(" + execPath + ")");

and my ant script:

	<property name="my.bin.dir" value="${basedir}/deploy/bin"/>

	<replace file="foo.property">
		<replacefilter token="@SOME_TOKEN@" value="${my.bin.dir}/foo.exe"/>
	</replace>	

When executed from a basedir of D:\foo\bar\frog (set by ant), my program outputs: 
"I am about to Runtime.exec(D:foobarfrog/deploy/bin/foo.exe)"  (broken)

If my foo.properties has
some.exec.path=D:\\foo\\bar\\frog\\deploy\\bin\\foo.exe

"I am about to Runtime.exec(D:\foo\bar\frog\deploy\bin\foo.exe)" (success)




I saw the <pathconvert> task, but it was not clear to me that one could pathconvert ant properties (even though a property specifies a path).

This brings up another point:  I would like to use ant to do "cross platform deployment" by using an NT machine to do builds (and path configuration) for UNIX boxes.  If I were to do an "% ant release -Dosname=AIX" on an NT machine, all the File instances created by ant should come out as /

Is it possible to tell ant to "use UNIX paths" instead of the system default?

I am currently considering a custom ant task to munge all the Project properties-  if run as a dependency of all other tasks, it could convert all the \ to / in the ant properties.  Java File objects seem ok with / as a file separator even on Windows machines, so I think this will be ok.

Cheers,
josh




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: in .properties with Windows paths? (/ vs \\)

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
One idea that may work for you is to use the <propertyfile> task to write
the property file instead using an <entry> for some.exec.path.  It will
ensure that everything is escaped properly.

    Erik


----- Original Message -----
From: "Joshua Kneubuhl" <jo...@demandtec.com>
To: <an...@jakarta.apache.org>
Sent: Tuesday, April 30, 2002 2:01 PM
Subject: <replace> in .properties with Windows paths? (/ vs \\)



Hi everyone,

I have some java code that references file paths from a .properties file.
I'm currently using ant to do some token replacement based on absolute
paths, and it is causing some troubles when running from NT.

For instance, I have a foo.property file:

some.exec.path=@SOME_TOKEN@

and java code:
String execPath = System.getProperties().getProperty("some.exec.path");
System.out.println("I am about to Runtime.exec(" + execPath + ")");

and my ant script:

<property name="my.bin.dir" value="${basedir}/deploy/bin"/>

<replace file="foo.property">
<replacefilter token="@SOME_TOKEN@" value="${my.bin.dir}/foo.exe"/>
</replace>

When executed from a basedir of D:\foo\bar\frog (set by ant), my program
outputs:
"I am about to Runtime.exec(D:foobarfrog/deploy/bin/foo.exe)"  (broken)

If my foo.properties has
some.exec.path=D:\\foo\\bar\\frog\\deploy\\bin\\foo.exe

"I am about to Runtime.exec(D:\foo\bar\frog\deploy\bin\foo.exe)" (success)




I saw the <pathconvert> task, but it was not clear to me that one could
pathconvert ant properties (even though a property specifies a path).

This brings up another point:  I would like to use ant to do "cross platform
deployment" by using an NT machine to do builds (and path configuration) for
UNIX boxes.  If I were to do an "% ant release -Dosname=AIX" on an NT
machine, all the File instances created by ant should come out as /

Is it possible to tell ant to "use UNIX paths" instead of the system
default?

I am currently considering a custom ant task to munge all the Project
properties-  if run as a dependency of all other tasks, it could convert all
the \ to / in the ant properties.  Java File objects seem ok with / as a
file separator even on Windows machines, so I think this will be ok.

Cheers,
josh




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Modern compiler - classic compiler

Posted by Ruben Thomas Yanas <rt...@yanasweb.com>.
That seemed to fix it.  Thank you so much.

Jay Riddell wrote:

> I *think* this is caused by not having $JAVA_HOME/lib/tools.jar
> in the Classpath.
>
> On 4/30/02 12:51 PM, "Ruben Thomas Yanas" <rt...@yanasweb.com> wrote:
>
> >
> > In trying to build the j2ee tutorial, I am getting
> > an error.  On a Windows 200 platform I have JBoss
> > with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> >
> > I can compile the example classes from a command line without
> > a problem. When I try building using ant, I get the
> > errors:
> >
> > ****************************************************
> >
> >
> >
> > In trying to build the j2ee tutorial, I am getting
> > an error.  On a Windows 200 platformm I have JBoss
> > with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> >
> > I can compile the example classes from a command line without
> > a problem. When I try building using ant, I get the
> > erorrs:
> >
> > *****************************************************
> >
> > E:\J2SDK1_3_1\j2eetutorial\examples>ant -verbose web
> > The system cannot find the path specified.
> > The system cannot find the path specified.
> > The system cannot find the path specified.
> > Ant version 1.4 compiled on April 18 2002
> > Buildfile: build.xml
> > Detected Java version: 1.3 in: e:\J2SDK1_3_1\JavaSDK\jre
> > Detected OS: Windows 2000
> > parsing buildfile E:\J2SDK1_3_1\j2eetutorial\examples\build.xml with URI =
> > file:E:/J2SDK1_
> > 3_1/j2eetutorial/examples/build.xml
> > Project base dir set to: E:\J2SDK1_3_1\j2eetutorial\examples
> > Build sequence for target `web' is [init, date, hello1, hello2, bookstore1,
> > web-ejb, books
> > tore2, bookstore3, web]
> > Complete build sequence is [init, date, hello1, hello2, bookstore1, web-ejb,
> > bookstore2, b
> > ookstore3, web, create-storagebin-table, get-cci-jar, procs, cci, connector,
> > create-salesr
> > ep-table, cmproster, confirmer, htmlreader, create-procs-alias,
> > savingsaccount, simplemess
> > age, salesrep, create-coffee-table, enroller, checker, bank, cart, converter,
> > order, stora
> > gebin, teller, warehouse, ejb, all, about, create-enroller-table,
> > create-savingsaccount-ta
> > ble, create-web-db, create-warehouse-table, create-bank-table, clean,
> > create-order-table,
> > create-teller-table, prepare, create-ejb-db]
> >
> > init:
> > [property] Loading Environment myenv.
> >
> > date:
> >    [copy] date.jsp omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\date.js
> > p is up to date.
> >    [copy] duke.waving.gif omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\
> > duke.waving.gif is up to date.
> >    [copy] index.jsp omitted as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\index.
> > jsp is up to date.
> >    [copy]  omitted as E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date is
> > up to date.
> >   [javac] MyDate.java added as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyDate
> > .class doesn't exist.
> >   [javac] MyLocales.java added as
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyL
> > ocales.class doesn't exist.
> >   [javac] date.jsp skipped - don't know how to handle it
> >   [javac] date.txt skipped - don't know how to handle it
> >   [javac] duke.waving.gif skipped - don't know how to handle it
> >   [javac] index.jsp skipped - don't know how to handle it
> >   [javac] index.txt skipped - don't know how to handle it
> >   [javac] Modern compiler is not available - using classic compiler
> >   [javac] Compiling 2 source files to
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date
> >
> >   [javac] Using classic compiler
> >   [javac] Compilation args: -d
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date -class
> > path
> > E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date;E:\J2SDK1_3_1\JavaSDKEE\lib
> > \j2ee.j
> >
> > ar;E:\J2SDK1_3_1\j2eetutorial\examples\build\web\hello1;E:\JBoss\JBoss-2.4.4_T
> > omcat-4.0.1\
> >
> > jboss\lib\crimson.jar;E:\JBoss\JBoss-2.4.4_Tomcat-4.0.1\jboss\lib\jaxp.jar;E:\
> > jakarta-ant-
> >
> > 1.4\bootstrap\lib\ant.jar -sourcepath
> > E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date -g:
> > none
> >   [javac] Files to be compiled:
> >   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyDate.java
> >   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyLocales.java
> >
> >
> > BUILD FAILED
> >
> > E:\J2SDK1_3_1\j2eetutorial\examples\build.xml:181: Cannot use classic
> > compiler, as it is n
> > ot available A common solution is to set the environment variable JAVA_HOME to
> > your jdk di
> > rectory.
> >       at
> > org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
> >       at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:530)
> >       at org.apache.tools.ant.Task.perform(Task.java:217)
> >       at org.apache.tools.ant.Target.execute(Target.java:164)
> >       at org.apache.tools.ant.Target.performTasks(Target.java:182)
> >       at org.apache.tools.ant.Project.executeTarget(Project.java:601)
> >       at org.apache.tools.ant.Project.executeTargets(Project.java:560)
> >       at org.apache.tools.ant.Main.runBuild(Main.java:454)
> >       at org.apache.tools.ant.Main.start(Main.java:153)
> >       at org.apache.tools.ant.Main.main(Main.java:176)
> >
> > Total time: 3 seconds
> >
> > The JAVAA_HOME variable is set and does seem to work when I compile
> > on the command line.  Any ideas how to fix the preceeding error?
> >
> > I am new to ant, but didn't have a problem building the
> > JBoss server.
> >
> > ****************************************************
> >
> > The JAVAA_HOME variable is set and does seem to work when I compile
> > on the command line.  Any ideas how to fix the preceeding errors?
> >
> > I am new to ant, but didn't have a problem building the
> > JBoss server.
> >
> > Regards,
> >
> > Tom
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Modern compiler - classic compiler

Posted by Jay Riddell <ja...@theriddells.org>.
I *think* this is caused by not having $JAVA_HOME/lib/tools.jar
in the Classpath.

On 4/30/02 12:51 PM, "Ruben Thomas Yanas" <rt...@yanasweb.com> wrote:

> 
> In trying to build the j2ee tutorial, I am getting
> an error.  On a Windows 200 platform I have JBoss
> with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> 
> I can compile the example classes from a command line without
> a problem. When I try building using ant, I get the
> errors:
> 
> ****************************************************
> 
> 
> 
> In trying to build the j2ee tutorial, I am getting
> an error.  On a Windows 200 platformm I have JBoss
> with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1
> 
> I can compile the example classes from a command line without
> a problem. When I try building using ant, I get the
> erorrs:
> 
> *****************************************************
> 
> E:\J2SDK1_3_1\j2eetutorial\examples>ant -verbose web
> The system cannot find the path specified.
> The system cannot find the path specified.
> The system cannot find the path specified.
> Ant version 1.4 compiled on April 18 2002
> Buildfile: build.xml
> Detected Java version: 1.3 in: e:\J2SDK1_3_1\JavaSDK\jre
> Detected OS: Windows 2000
> parsing buildfile E:\J2SDK1_3_1\j2eetutorial\examples\build.xml with URI =
> file:E:/J2SDK1_
> 3_1/j2eetutorial/examples/build.xml
> Project base dir set to: E:\J2SDK1_3_1\j2eetutorial\examples
> Build sequence for target `web' is [init, date, hello1, hello2, bookstore1,
> web-ejb, books
> tore2, bookstore3, web]
> Complete build sequence is [init, date, hello1, hello2, bookstore1, web-ejb,
> bookstore2, b
> ookstore3, web, create-storagebin-table, get-cci-jar, procs, cci, connector,
> create-salesr
> ep-table, cmproster, confirmer, htmlreader, create-procs-alias,
> savingsaccount, simplemess
> age, salesrep, create-coffee-table, enroller, checker, bank, cart, converter,
> order, stora
> gebin, teller, warehouse, ejb, all, about, create-enroller-table,
> create-savingsaccount-ta
> ble, create-web-db, create-warehouse-table, create-bank-table, clean,
> create-order-table,
> create-teller-table, prepare, create-ejb-db]
> 
> init:
> [property] Loading Environment myenv.
> 
> date:
>    [copy] date.jsp omitted as
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\date.js
> p is up to date.
>    [copy] duke.waving.gif omitted as
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\
> duke.waving.gif is up to date.
>    [copy] index.jsp omitted as
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\index.
> jsp is up to date.
>    [copy]  omitted as E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date is
> up to date.
>   [javac] MyDate.java added as
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyDate
> .class doesn't exist.
>   [javac] MyLocales.java added as
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyL
> ocales.class doesn't exist.
>   [javac] date.jsp skipped - don't know how to handle it
>   [javac] date.txt skipped - don't know how to handle it
>   [javac] duke.waving.gif skipped - don't know how to handle it
>   [javac] index.jsp skipped - don't know how to handle it
>   [javac] index.txt skipped - don't know how to handle it
>   [javac] Modern compiler is not available - using classic compiler
>   [javac] Compiling 2 source files to
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date
> 
>   [javac] Using classic compiler
>   [javac] Compilation args: -d
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date -class
> path
> E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date;E:\J2SDK1_3_1\JavaSDKEE\lib
> \j2ee.j
> 
> ar;E:\J2SDK1_3_1\j2eetutorial\examples\build\web\hello1;E:\JBoss\JBoss-2.4.4_T
> omcat-4.0.1\
> 
> jboss\lib\crimson.jar;E:\JBoss\JBoss-2.4.4_Tomcat-4.0.1\jboss\lib\jaxp.jar;E:\
> jakarta-ant-
> 
> 1.4\bootstrap\lib\ant.jar -sourcepath
> E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date -g:
> none
>   [javac] Files to be compiled:
>   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyDate.java
>   E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyLocales.java
> 
> 
> BUILD FAILED
> 
> E:\J2SDK1_3_1\j2eetutorial\examples\build.xml:181: Cannot use classic
> compiler, as it is n
> ot available A common solution is to set the environment variable JAVA_HOME to
> your jdk di
> rectory.
>       at
> org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
>       at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:530)
>       at org.apache.tools.ant.Task.perform(Task.java:217)
>       at org.apache.tools.ant.Target.execute(Target.java:164)
>       at org.apache.tools.ant.Target.performTasks(Target.java:182)
>       at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>       at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>       at org.apache.tools.ant.Main.runBuild(Main.java:454)
>       at org.apache.tools.ant.Main.start(Main.java:153)
>       at org.apache.tools.ant.Main.main(Main.java:176)
> 
> Total time: 3 seconds
> 
> The JAVAA_HOME variable is set and does seem to work when I compile
> on the command line.  Any ideas how to fix the preceeding error?
> 
> I am new to ant, but didn't have a problem building the
> JBoss server.
> 
> ****************************************************
> 
> The JAVAA_HOME variable is set and does seem to work when I compile
> on the command line.  Any ideas how to fix the preceeding errors?
> 
> I am new to ant, but didn't have a problem building the
> JBoss server.
> 
> Regards,
> 
> Tom
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Modern compiler - classic compiler

Posted by Ruben Thomas Yanas <rt...@yanasweb.com>.
In trying to build the j2ee tutorial, I am getting
an error.  On a Windows 200 platform I have JBoss
with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1

I can compile the example classes from a command line without
a problem. When I try building using ant, I get the
errors:

****************************************************



In trying to build the j2ee tutorial, I am getting
an error.  On a Windows 200 platformm I have JBoss
with Tomcat, and the JDK SDK 1.3.1. With Ant 1.4.1

I can compile the example classes from a command line without
a problem. When I try building using ant, I get the
erorrs:

*****************************************************

E:\J2SDK1_3_1\j2eetutorial\examples>ant -verbose web
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Ant version 1.4 compiled on April 18 2002
Buildfile: build.xml
Detected Java version: 1.3 in: e:\J2SDK1_3_1\JavaSDK\jre
Detected OS: Windows 2000
parsing buildfile E:\J2SDK1_3_1\j2eetutorial\examples\build.xml with URI =
file:E:/J2SDK1_
3_1/j2eetutorial/examples/build.xml
Project base dir set to: E:\J2SDK1_3_1\j2eetutorial\examples
Build sequence for target `web' is [init, date, hello1, hello2, bookstore1,
web-ejb, books
tore2, bookstore3, web]
Complete build sequence is [init, date, hello1, hello2, bookstore1, web-ejb,
bookstore2, b
ookstore3, web, create-storagebin-table, get-cci-jar, procs, cci, connector,
create-salesr
ep-table, cmproster, confirmer, htmlreader, create-procs-alias,
savingsaccount, simplemess
age, salesrep, create-coffee-table, enroller, checker, bank, cart, converter,
order, stora
gebin, teller, warehouse, ejb, all, about, create-enroller-table,
create-savingsaccount-ta
ble, create-web-db, create-warehouse-table, create-bank-table, clean,
create-order-table,
create-teller-table, prepare, create-ejb-db]

init:
 [property] Loading Environment myenv.

date:
     [copy] date.jsp omitted as
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\date.js
p is up to date.
     [copy] duke.waving.gif omitted as
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\
duke.waving.gif is up to date.
     [copy] index.jsp omitted as
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\index.
jsp is up to date.
     [copy]  omitted as E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date is
up to date.
    [javac] MyDate.java added as
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyDate
.class doesn't exist.
    [javac] MyLocales.java added as
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date\MyL
ocales.class doesn't exist.
    [javac] date.jsp skipped - don't know how to handle it
    [javac] date.txt skipped - don't know how to handle it
    [javac] duke.waving.gif skipped - don't know how to handle it
    [javac] index.jsp skipped - don't know how to handle it
    [javac] index.txt skipped - don't know how to handle it
    [javac] Modern compiler is not available - using classic compiler
    [javac] Compiling 2 source files to
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date

    [javac] Using classic compiler
    [javac] Compilation args: -d
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date -class
path
E:\J2SDK1_3_1\j2eetutorial\examples\build\web\date;E:\J2SDK1_3_1\JavaSDKEE\lib\j2ee.j

ar;E:\J2SDK1_3_1\j2eetutorial\examples\build\web\hello1;E:\JBoss\JBoss-2.4.4_Tomcat-4.0.1\

jboss\lib\crimson.jar;E:\JBoss\JBoss-2.4.4_Tomcat-4.0.1\jboss\lib\jaxp.jar;E:\jakarta-ant-

1.4\bootstrap\lib\ant.jar -sourcepath
E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date -g:
none
    [javac] Files to be compiled:
    E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyDate.java
    E:\J2SDK1_3_1\j2eetutorial\examples\src\web\date\MyLocales.java


BUILD FAILED

E:\J2SDK1_3_1\j2eetutorial\examples\build.xml:181: Cannot use classic
compiler, as it is n
ot available A common solution is to set the environment variable JAVA_HOME to
your jdk di
rectory.
        at
org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:96)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:530)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:164)
        at org.apache.tools.ant.Target.performTasks(Target.java:182)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 3 seconds

The JAVAA_HOME variable is set and does seem to work when I compile
on the command line.  Any ideas how to fix the preceeding error?

I am new to ant, but didn't have a problem building the
JBoss server.

****************************************************

The JAVAA_HOME variable is set and does seem to work when I compile
on the command line.  Any ideas how to fix the preceeding errors?

I am new to ant, but didn't have a problem building the
JBoss server.

Regards,

Tom



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: in .properties with Windows paths? (/ vs \\)

Posted by Diane Holt <ho...@yahoo.com>.
--- Joshua Kneubuhl <jo...@demandtec.com> wrote:
> I saw the <pathconvert> task, but it was not clear to me that one could
> pathconvert ant properties (even though a property specifies a path).

To use <pathconvert>, you'd need to set a <path> (or some other datatype
it understands), but you can reference your property(s) in the elements.
Just avoid the whole backslash mess and set all your values using
foreslashes (even for DOS paths), then, when you reference the properties
in attributes/elements that do the right thing, you shouldn't even have to
worry about converting anything (you'd need to <pathconvert> to get path
styles for an OS type you're not currently running under, but that should
be completely doable).

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>