ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Request
Date Thu, 28 Aug 2003 17:27:22 GMT
Will do-
-Martin
----- Original Message ----- 
From: "Antoine Levy-Lambert" <antoine@antbuild.com>
To: "Ant Developers List" <dev@ant.apache.org>
Sent: Thursday, August 28, 2003 7:03 AM
Subject: Re: Request


> Martin,
> you should write :
> j2ee.home=J:\\J2EE\\j2ee_sdk_win
> 
> properties are read with java.util.Properties#load
> the backslash must be escaped.
> 
> Antoine
> 
> ----- Original Message ----- 
> From: "Martin Gainty" <mgainty@hotmail.com>
> To: <ant-dev@jakarta.apache.org>
> Sent: Thursday, August 28, 2003 1:06 AM
> Subject: Request
> 
> 
> > when build.properties contains
> > j2ee.home=J:/J2EE/j2ee_sdk_win
> > ant builds correctly
> > 
> > When build.properties contains
> > j2ee.home=J:\J2EE\j2ee_sdk_win
> > ant doesnt build because it cannot resolve JAVA_HOME
> > 
> > PLEASE make the forward and back slashes interchangeable
> > 
> > -Martin
> > 
> > ----- Original Message -----
> > From: "Matt Benson" <gudnabrsam@yahoo.com>
> > To: "Aloizio Pereira da Silva" <aloizio@dcc.ufmg.br>; "Ant Users List"
> > <ant-user@jakarta.apache.org>
> > Sent: Wednesday, August 27, 2003 8:18 AM
> > Subject: Re: New Task and Classpath
> > 
> > 
> > > Normal message list etiquette is to keep the
> > > discussion on the list unless it is agreed to take the
> > > discussion private.  This is for everyone's benefit
> > > including your own.  Anyway, the problem still remains
> > > that we don't know what it is you intend to do with a
> > > classpath.  Your task still has to DO something with
> > > the classpath, like invoking a Java class, or
> > > searching for class files or something.
> > >
> > > -Matt
> > >
> > > --- Aloizio Pereira da Silva <aloizio@dcc.ufmg.br>
> > > wrote:
> > > > Hi Matt Benson,
> > > >
> > > > I implemented your suggestion. Now, my new ant task
> > > > allows to use
> > > > <classpath ...>, but it can not set the classpath.
> > > > Could you help me?
> > > >
> > > >
> > > >
> > > *****************************************************
> > > >             *         Federal University of Minas
> > > > Gerais        *
> > > >             *          Department of Computer
> > > > Science          *
> > > >             *         Master Degree in Computer
> > > > Science         *
> > > >             *
> > > >            *
> > > >             *                 Aloizio Silva
> > > >            *
> > > >             *
> > > > http://www.dcc.ufmg.br/~aloizio          *
> > > >             *
> > > >            *
> > > >             *      Mobile Computer and Network
> > > > Optimization     *
> > > >
> > > >
> > > *****************************************************
> > > >
> > > >
> > > > On Tue, 26 Aug 2003, Matt Benson wrote:
> > > >
> > > > > You should be able to use either an inline-defined
> > > > > path element, or a referenced path element.
> > > > However,
> > > > > your task must accept a path, for one thing.  So
> > > > adapt
> > > > > that code from an existing task, like <java>
> > > > > (classname org.apache.tools.ant.taskdefs.Java).
> > > > It
> > > > > has the method:
> > > > >
> > > > > public Path createClasspath(){...}
> > > > >
> > > > > It might be possible to add Paths via some of
> > > > Ant's
> > > > > other mechanisms, but using the above has the
> > > > added
> > > > > benefit of allowing you to accept multiple nested
> > > > > paths and logically concatenate them into one,
> > > > which
> > > > > is what <java> does.
> > > > >
> > > > > then your task has to know what to DO with a
> > > > > classpath.  Maybe if your task encapsulates the
> > > > > execution of the main method of some Java class
> > > > you
> > > > > should just extend the <java> task to make your
> > > > life
> > > > > easier...
> > > > >
> > > > > -Matt
> > > > >
> > > > >
> > > > > --- Aloizio Pereira da Silva <aloizio@dcc.ufmg.br>
> > > > > wrote:
> > > > > > This does not work. I get the following message:
> > > > > >
> > > > > > BUILD FAILED
> > > > > > file:M:/Aloizio/JAVADOC/NewAntTask/build.xml:58:
> > > > The
> > > > > > <gerar_relatorio>
> > > > > > task doesn't support the nested "classpath"
> > > > element.
> > > > > >
> > > > > >
> > > > > > The code is:
> > > > > >
> > > > > > <target name="messages" depends="compile">
> > > > > >   <taskdef
> > > > > > name="gerar_relatorio"
> > > > > >
> > > > >
> > > >
> > > classname="org.apache.tools.ant.taskdefs.TaskGeraRelatorio"
> > > > > > classpath="${build.dir}"/>
> > > > > >   </taskdef> -->
> > > > > >   <gerar_relatorio
> > > > > >                     diretorioSaida=
> > > > "M:\aloizio\"
> > > > > >                     arqPrestacao=
> > > > > > "M:\aloizio\prestacao.txt"
> > > > > >
> > > > > > arqNomeRelatorio="M:\aloizio\relatorios.txt"
> > > > > >                     banco=
> > > > > > "orofic,usu_anual2,usu_anual2orofic"
> > > > > >
> > > > > > caminhoBancosInterBase="M:\aloizio\gdbs\"
> > > > > >
> > > > > >
> > > > >
> > > >
> > > versaojar="C:/Local/JBuilder4/lib/Synergia/remessaanual_2.1.jar"
> > > > > >                     usarID="Sim">
> > > > > >
> > > > > >    <classpath refid="set.classpath" />
> > > > > >
> > > > > >   </gerar_relatorio>
> > > > > > </target>
> > > > > >
> > > > > >
> > > > >
> > > >
> > > *****************************************************
> > > > > >             *         Federal University of
> > > > Minas
> > > > > > Gerais        *
> > > > > >             *          Department of Computer
> > > > > > Science          *
> > > > > >             *         Master Degree in Computer
> > > > > > Science         *
> > > > > >             *
> > > >
> > > > > >            *
> > > > > >             *                 Aloizio Silva
> > > >
> > > > > >            *
> > > > > >             *
> > > > > > http://www.dcc.ufmg.br/~aloizio          *
> > > > > >             *
> > > >
> > > > > >            *
> > > > > >             *      Mobile Computer and Network
> > > > > > Optimization     *
> > > > > >
> > > > > >
> > > > >
> > > >
> > > *****************************************************
> > > > > >
> > > > > >
> > > > > > On Tue, 26 Aug 2003, Antoine Levy-Lambert wrote:
> > > > > >
> > > > > > > You need to define then your path before with
> > > > > > > <path id="id.classe">
> > > > > > >    <pathelement location="something"/>
> > > > > > >    <.../>
> > > > > > > </path>
> > > > > > > See
> > > > > > > http://ant.apache.org/manual/using.html#path
> > > > > > > Antoine
> > > > > > > ----- Original Message -----
> > > > > > > From: "Aloizio Pereira da Silva"
> > > > > > <aloizio@dcc.ufmg.br>
> > > > > > > To: <user@ant.apache.org>
> > > > > > > Sent: Tuesday, August 26, 2003 8:04 PM
> > > > > > > Subject: New Task and Classpath
> > > > > > >
> > > > > > >
> > > > > > > > Hi everybody,
> > > > > > > >
> > > > > > > > I have created a new ant task. How I can set
> > > > the
> > > > > > classpath inside the
> > > > > > > > task? I would like to use <classpath
> > > > > > refid="id.classe"/> inside the new
> > > > > > > > ant task.
> > > > > > > >
> > > > > > > > thanks.
> > > > > > > >
> > > > > >
> > > > >
> > > >
> > > *****************************************************
> > > > > > > >             *         Federal University of
> > > > > > Minas Gerais        *
> > > > > > > >             *          Department of
> > > > Computer
> > > > > > Science          *
> > > > > > > >             *         Master Degree in
> > > > Computer
> > > > > > Science         *
> > > > > > > >             *
> > > >
> > > > > >                *
> > > > > > > >             *                 Aloizio Silva
> > > >
> > > > > >                *
> > > > > > > >             *
> > > > > > http://www.dcc.ufmg.br/~aloizio          *
> > > > > > > >             *
> > > >
> > > > > >                *
> > > > > > > >             *      Mobile Computer and
> > > > Network
> > > > > > Optimization     *
> > > > > > > >
> > > > > >
> > > > >
> > > >
> > > *****************************************************
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > >
> > > === message truncated ===
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > > http://sitebuilder.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

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


Mime
View raw message