ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
Subject Re: Problem to compile target
Date Thu, 05 Feb 2004 14:19:27 GMT
Can you run ant in verbose or debug mode (ant -verbose or ant -debug ) 
and study the output ?

Antoine

Mikael Petterson (KI/EAB) wrote:

>Hi,
>
>Thanks for your reply Antoine.
>
>However your suggestion does not seem to solve the problem.
>
>When I run ant with -verbose it seems like "compile" target is skipped.
>
>compile:
>
>jar:
>      [jar] Building jar: /vobs/rbs/sw/rbssw1/boam_subsys/test_boamss/bros_swb/lib.java/bros.jar
>      [jar] adding directory META-INF/
>      [jar] adding entry META-INF/MANIFEST.MF
>     [copy] Copying 1 file to /vobs/rbs/sw/rbssw1/simcello/mp_lm
>     [copy] Copying /vobs/rbs/sw/rbssw1/boam_subsys/test_boamss/bros_swb/lib.java/bros.jar
to /vobs/rbs/sw/rbssw1/simcello/
>mp_lm/bros.jar
>
>Could it be something related to the compiler?
>
>All hints are greatly appreciated!
>
>//Mikael
>
>
>
>-----Original Message-----
>From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
>Sent: den 5 februari 2004 11:41
>To: Ant Users List
>Subject: Re: Problem to compile target
>
>
>Mikael Petterson (KI/EAB) wrote:
>
>  
>
>>I am resending this since I do not see the "message" being posted to ant user list.
>>------------------------------------------------------------------------------------------------------------------------
>>
>>
>>Hi,
>>
>>I am running Apache Ant version 1.5.4.
>>I execute first "clean" and then "all" targets.
>>I have the following build.xml ( see below) and when  "compile" target is to be run
(since I have made a "clean") it seems to be skipped. Any ideas why?
>>
>>All hints are greatly appreciated!
>>
>>BR
>>
>>//Mikael
>>
>>
>>Part of log
>>================
>>compile:
>>*[javac] bros.xml skipped - don't know how to handle it*
>>
>>jar:
>>     [jar] Building jar: /vobs/rbs/sw/rbssw1/boam_subsys/test_boamss/bros_swb/lib.java/bros.jar
>>     [jar] adding directory META-INF/
>>     [jar] adding entry META-INF/MANIFEST.MF
>>    [copy] Copying 1 file to /vobs/rbs/sw/rbssw1/simcello/mp_lm
>>    [copy] Copying /vobs/rbs/sw/rbssw1/boam_subsys/test_boamss/bros_swb/lib.java/bros.jar
to /vobs/rbs/sw/rbssw1/simcello/mp_lm/bros.jar
>>
>>build.xml
>>=====================================
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><!-- Written to assume that classpath is rooted in the current directory. -->
>><!-- So this should be OK if you make this script in the root of a filesystem.
-->
>><!-- If not, you may prefer to adjust the basedir, or move some directories around.
-->
>><!-- The idea is that both Ant and NetBeans have to know what the package root
is -->
>><!-- for the classes in your application.
>>
>> Revision: 2004-01-09 eraonel Restructuring to make more robust build of bros. 
>>
>>
>>
>>
>>
>>-->
>><project basedir="." default="all" name="bros">
>>
>>   <!-- Don't worry if you don't know the Ant syntax completely or need help on
some tasks! -->
>>   <!-- The standard Ant documentation can be downloaded from AutoUpdate and -->
>>   <!-- and then you can access the help in menu Help | Help Sets | Ant 1.5.1 Manual.
-->
>>
>>   <target name="init" description="initialization of variables">
>>       
>>       <!-- Directories - BOAM -->
>>       <property name="boam.dir" value="/vobs/rbs/sw/rbssw1/boam_subsys"/>
>>       <property name="boam.src.dir" value="${boam.dir}/src"/> 
>>       <property name="boam.classes.dir" value="${boam.dir}/classes"/> 
>>       <property name="boam.jar.dir" value="${boam.dir}/lib.java/"/>
>>
>>       <!-- Directories - BROS -->
>>       <property name="bros.bin.dir" value="../bin"/>
>>       <property name="bros.classes.dir" value="../classes"/>
>>       <property name="bros.jar.dir" value="../lib.java"/>
>>       <property name="bros.log.dir" value="../log"/>
>>       <property name="simcello.dir" value="/vobs/rbs/sw/rbssw1/simcello/mp_lm"/>
>>       
>>
>>       <!-- Jar files -->
>>       <property name="bros.jar" value="${ant.project.name}.jar"/>
>>       <property name="boam.jar" value="boam.jar"/>
>>
>>       <!--Libraries -->
>>       <property name="cma" value="/vobs/cello/struct/cello_dp/lib/jvm/cma.jar"/>
>>       <property name="foundation" value="/vobs/cello/struct/cello_dp/lib/jvm/foundation.jar"/>
>>       <property name="oms" value="/vobs/cello/struct/cello_dp/lib/jvm/oms.jar"/>
>>       <property name="vbjorb" value="/vobs/cello/struct/cello_dp/lib/jvm/vbjorb.jar"/>
>>       <property name="asms" value="/vobs/cello/struct/cello_dp/lib/jvm/install_stubbed/asms.jar"/>
>>       <property name="boam" value="${boam.jar.dir}/${boam.jar}"/>
>>       
>>       <!-- Echoing version information -->
>>       <echo message="Java version is ${ant.java.version}"/>
>>       <echo message="${ant.version}"/>
>>       <echo message="Running on os ${os.name}"/>
>>       <echo message="Working on preparing ${ant.project.name}"/>
>>       
>>       <!-- Creating directories -->
>>       <mkdir dir="${boam.classes.dir}"/>
>>       <mkdir dir="${boam.jar.dir}"/>
>>       <mkdir dir="${bros.jar.dir}"/>
>>       <mkdir dir="${bros.classes.dir}"/>
>>       <mkdir dir="${bros.log.dir}"/>
>>       
>>   </target>
>>
>>   <target depends="init" name="build_dependencies" description="building dependent
jar:s">
>>    <javac debug="true" deprecation="true" destdir="${boam.classes.dir}" srcdir="${boam.src.dir}">
>>           <classpath><pathelement path="${cma}"/></classpath>
>>           <classpath><pathelement path="${foundation}"/></classpath>
>>           <classpath><pathelement path="${oms}"/></classpath>
>>           <classpath><pathelement path="${vbjorb}"/></classpath>
>>           <classpath><pathelement path="${asms}"/></classpath>
>>           <exclude name="se/ericsson/wcdma/rbs/boam/pms/tb/"/>
>>           <exclude name="se/ericsson/wcdma/rbs/boam/conv/"/>
>>    </javac>
>>    <jar basedir="${boam.classes.dir}" compress="true" jarfile="${boam.jar.dir}/${boam.jar}">
>>           <exclude name="**/*.java"/>
>>           <exclude name="${boam.jar.dir}"/>
>>    </jar> 
>>   </target>
>>
>>   <target depends="init,build_dependencies" name="compile" description="compiling
java source files">
>>       <javac debug="true" deprecation="true" destdir="${bros.classes.dir}" srcdir=".">
>>           <classpath><pathelement path="${cma}"/></classpath>
>>           <classpath><pathelement path="${foundation}"/></classpath>
>>           <classpath><pathelement path="${oms}"/></classpath>
>>           <classpath><pathelement path="${vbjorb}"/></classpath>
>>           <classpath><pathelement path="${asms}"/></classpath>
>>           <classpath><pathelement path="${boam.jar.dir}/${boam.jar}"/></classpath>
>>       </javac>
>>     
>>   </target>
>>
>>   <target depends="init,compile" name="jar" description="create jar file of classes">
>>       <jar basedir="${bros.classes.dir}" compress="true" jarfile="${bros.jar.dir}/${bros.jar}">
>>           <exclude name="**/*.java"/>
>>           <exclude name="${bros.jar.dir}"/>
>>       </jar>
>>       <copy file="${bros.jar.dir}/${bros.jar}" todir="${simcello.dir}"/>
>>   </target>
>>
>>   <target depends="init" name="eclipse_preps" description="Fake a matching dir.
and pkg. structure for eclipse">
>>    <exec executable="sh" os="SunOS, Linux, Solaris" output="${bros.log.dir}/brosFolders.txt">
>>     <arg value="${bros.bin.dir}/brosFolders.sh"/>
>>    </exec>
>>   </target>
>>
>>   <target depends="init,jar,eclipse_preps" description="Build everything and make
a jar." name="all">
>>       <echo message="Application ${ant.project.name} finished"/>
>>   </target>
>>
>>   <target depends="init" description="Clean all build products, classes and jar:s"
name="clean">
>>       <delete>
>>           <fileset dir="${bros.classes.dir}">
>>               <include name="**/*.class"/>
>>           </fileset>
>>           <fileset dir="${boam.classes.dir}">
>>               <include name="**/*.class"/>
>>           </fileset>
>>       </delete>
>>   <delete file="${bros.jar.dir}/${bros.jar}"/>
>>   <delete file="${boam.jar.dir}/${boam.jar}"/>
>>  </target>
>>
>></project>
>>
>>
>>
>>
>>    
>>
>I think you need to nest an <include name="**/*.java"/> in your javac 
>task. The javac task is failing because there is an xml file in the set 
>of files that ant passes to javac.
>
>Cheers,
>Antoine
>
>  
>


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


Mime
View raw message