ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: <env> task?
Date Wed, 05 Nov 2003 18:06:53 GMT
On Wednesday 05 November 2003 18:04, Matt Benson wrote:
> I'm not sure I understand everything, but as far as
> getting the classpath and adding stuff...
>
> something like:
>
> <property environment="env" />
>
> <path id="my.classpath">
>   <dirset dir="${build.dir}" includes="classes" />
>   <fileset dir="lib" includes="*.jar" />
>   <pathelement path="env.CLASSPATH" />
> </path>
>
> should work for prepending stuff to your classpath...
>
> -Matt
>
> --- Tony Zhang <Tony.Zhang@Sun.COM> wrote:
> > I didn't get any reply, not sure if my message went
> > out. So let me try again.
> >
> > Is there a task or way to get the return result of
> > running a command?  For example, store the
> > result of unix command 'pwd' to an envionment
> > variable.
To do this:

<project default="pwd">
  <target name="pwd">
    <exec outputproperty="pwd.prop"
          executable="pwd"/>
    <echo>pwd is ${pwd.prop}</echo>
  </target>
</project>

> >
> >
> >  Basically, I need a target similiar to the one
> >  below, but I need to use "get" instead of
> >  "set" arg-line below to get the old
> >  classpath first, then "set" the new classpath
> >  to add a few classes/jars before the old
> >  classapth.
> >
> >  Would it be possible and how?
> >
> >
> >  Thanks,
> >
> >  -Tony
> >
> > <target name="server-classpath" depends="init">
> >   <exec executable="${SE_HOME}/bin/asadmin"
> >                        failonerror="false">
> >       <arg line="set"/>
> >       <arg line="--user ${SUT_USERNAME} "/>
> >       <arg line="--password ${SUT_PASSWD}"/>
> >       <arg line="--host ${SUT_HOST}"/>
> >       <arg line="--port ${SUT_ADMIN_PORT} "/>
>
> <argline="java-config.classpath=${jaxb.classpath}:${SE_LIB}/classes12.zip"/
>>
>
> >   </exec>
> > </target>
>
> ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message