ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: how to exclude a file from directory
Date Tue, 02 Sep 2003 15:22:16 GMT
The responses that your fileset was not being used
were correct.  In addition to this, I find your
definition of the property compile_classpath very
"uncomfortable."  This may be getting set the way you
desire but I would be extremely wary here.  You may
want to view this with debug output if you continue to
have bad results.  I would imagine it to be far more
common to define paths using nested elements if they
are longer than what would fit comfortably on a single
line (see path-like structures documentation in
Concepts and Types in the Ant manual).

-Matt


--- Laxma.Nandikonda@nokia.com wrote:
> 
> 
> -----Original Message-----
> From: Nandikonda Laxma (NET-OSS/Espoo) 
> Sent: 01 September, 2003 14:24
> To: 'Ant Users List'
> Subject: RE: how to exclude a file from directory
> 
> 
> Hi friends,
> 
>  I tried all the options replied to me and still
> can't exclude AntennaModelTool.java file from
> compilation.
>  Please, can some one tell me what's wrong with this
> file.I just want to exclude this file from
> compilation. 
> 
> And here is my build.xml file 
> 
>
------------------------------------------------------------------------
> <project name="Client" default="compile" basedir="">
> 
>     <description>
>         Build file for Client.
>         * Compiles
>         * Jars
>         * Distributes
>     </description>
> 
>   <property name="gis_root" value="../GIS_stage/lib"
> />
>   <property name="log_root" value="../LOG/lib" />
>   <property name="jclass_root" value="../jclass/lib"
> />
>   <property name="misc_root"
> value="../optimizer_misc" />
>   <property name="xerces_root"
> value="../j2se/lib/xerces" />
>   <property name="oclient_root"
> value="../optimizer_Oclient/src" />
>   <property name="optenv_root"
> value="../optimizer1_0_env/instdir" />
> 
>   <property name="utilities_root"
> value="../optimiser_Utilities/" />
>   <property name="utilities_jar"
> value="utilities.jar" />
>   <property name="platform_root"
> value="../optimizer_Platform/" />
>   <property name="platform_jar"
> value="platform_irp.jar" />
>   <property name="pfutil_root"
> value="../optimizer_PlatformUtilities/" />
>   <property name="pfutil_jar" value="pfutil.jar" />
> 
>   <fileset dir =
>
"${src1}/nokia/configurator/optimizer/oclient/antpml"
> >
>       <exclude
> name="**/antpml/AntennaModelTool.java"/>
>   </fileset>
> 
>   <property name="compile_classpath" value="
>      ${oclient_root}/app-defaults;
>      ${oclient_root}/conf;
>      ${gis_root}/gispf.jar;
>      ${gis_root}/gispf_client.jar;
>      ${ilog_root}/jtgoall.jar;
>      ${ilog_root}/jviewsall.jar;
>      ${ilog_root}/jdom.jar;
>      ${jclass_root}/jcchartK.jar;
>      ${jclass_root}/jctableK.jar;
>      ${optenv_root}/optimzer;
>      ${misc_root}/Mercury/weblogic.jar;
>      ${misc_root}/Platypus/applibs.jar;
>      ${misc_root}/Platypus/icons.jar;
>      ${misc_root}/Platypus/servicesif.jar;
>      ${misc_root}/Platypus/servicesimp.jar;
>     
> ${misc_root}/Platypus/platypus_loginmodules.jar;
>      ${misc_root}/Platypus/nlaf.jar;
>      ${misc_root}/repository/classes/repository.jar;
>      ${misc_root}/repository_common/common.jar;
>     
>
${misc_root}/MOServerRC2.1/classes/cmeditor_moserver_rmi.jar;
>      ${misc_root}/tmp/gispf_wl.jar;
>      ${misc_root}/tmp/classes12.zip;
>      ${misc_root}/tmp/j2ee.jar;
>      ${misc_root}/tmp/junit.jar;
>      ${misc_root}/tmp/racmodel.jar;
>      ${platform_root}/src/app-defaults;
>      ${platform_root}/src/conf " />
> 
>   <property name="src1"
> location="${oclient_root}/com "/>
>   <property name="src2"
> location="${utilities_root}/src/com"/>
>   <property name="src3"
>
location="${platform_root}/src/com/nokia/configurator/optimizer/platform/pfiif;"/>
>   <property name="src4"
> location="${pfutil_root}/src/com"/>
>   <property name="src5"
> location="../optimizer_RasterCalc/src"/>
>   <property name="src6"
> location="../optimizer_AdjacencyManagement/src"/>
>   <property name="src7"
> location="../optimizer_CalculationFramework/src "/>
> 
> 
>   <property name="build" location="classes"/>
> 
>   <!-- targets for this build -->
> 
>   <target name="clean" description="clean up" >
>     <!-- Delete the ${build} and ${doc} directory
> trees etc. -->
>     <delete dir="${build}"/>
>   </target>
> 
>   <target name="init">
>     <!-- Create the time stamp -->
>     <tstamp/>
>     <!-- Create the build directory structure used
> by compile -->
>     <mkdir dir="${build}"/>
>   </target>
> 
> 
>   <target name="compile" depends="init"
> description="compile the source " >
>     <tstamp/>
>     <!-- Compile the java code from ${src} into
> ${build} -->
>     <echo message=">>> COMPILING FROM ${src} TO
> ${build} ..." />
>     <echo message=">>> src1 = ${src1} ..." />
>     <javac debug="${compile.debug}"
>            deprecation="${compile.deprecation}"
>            optimize="${compile.optimize}"
>           
>
srcdir="${src1}:${src2}:${src3}:${src4}:${src5}:${src6}:${src7}"
>            destdir="${build}"
>            classpath="${compile_classpath}"
>            fork="true"
>            memoryMaximumSize="256m"/>
>   </target>
> 
> </project>
> 
>
---------------------------------------------------------------------------------------
> 
> Thanks..
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________
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


Mime
View raw message