ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: ant doesn't know about all system properties...
Date Mon, 05 Oct 2009 02:25:01 GMT


Here is what I have:

<project>
     <echo  message = "${java.library.path}"/>
</project>

My results:
      [echo] 
/usr/java/jdk1.6.0_16/jre/lib/amd64/server:/usr/java/jdk1.6.0_16/jre/lib/amd64:/usr/java/jdk1.6.0_16/jre/../
lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib

All Java system properties should be available to you within Ant...

What leads you to believe this is not so?

You should simply be able to use that property as I did above...or you can 
store it in a property as:

<property name="myprop" value="${java.library.path}"/>


Are you sure about that?

On Sun, 4 Oct 2009, Francis GALIEGUE wrote:

> Hello,
>
> Unlike what the manual says, it doesn't know of all system properties.
> I need to have the output of java.library.path in a property, how can
> I do that without having to write a Java class (even though it would
> be simple) or use <script>, since I don't want external dependencies?
>
> -- 
>
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> fge@one2team.com
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

Mime
View raw message