ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Help with property not being set
Date Tue, 15 Jun 2004 13:02:43 GMT
Target jalope doesnt depend on init.

Jan

> -----Original Message-----
> From: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com]
> Sent: Tuesday, June 15, 2004 2:54 PM
> To: 'user@ant.apache.org'
> Subject: Help with property not being set
> 
> 
> Hi,
> 
> I cannot figure out why a certain property is not being set.
> 
> Any hints!
> 
> //Mikael 
> 
> 
> /home/eraonel/pub/apache-ant-1.5.4/bin/ant -v -buildfile 
> /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml all
> Apache Ant version 1.5.4 compiled on August 12 2003
> Buildfile: /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml
> Detected Java version: 1.3 in: /vobs/cello/cade_A_tools_jdk/jre
> Detected OS: SunOS
> parsing buildfile 
> /vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml with URI = 
> file:/vobs/rbs/sw/rbssw1/boam_subsys/src/boam.xml
> Project base dir set to: /vobs/rbs/sw/rbssw1/boam_subsys/src
> Property ${jalopy.ant.dir} has not been set
> 
> BUILD FAILED
> /vobs/rbs/sw/rbssw1/boam_subsys/src/${jalopy.ant.dir}/lib not found.
>         at 
> org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner
> (AbstractFileSet.java:369)
>         at org.apache.tools.ant.types.Path.list(Path.java:332)
>         at org.apache.tools.ant.types.Path.list(Path.java:320)
>         at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
>         at 
> org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
>         at 
> org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:286)
>         at 
> org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:317)
>         at 
> org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:340)
>         at 
> org.apache.tools.ant.taskdefs.Definer.createLoader(Definer.java:275)
>         at 
> org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:151)
>         at 
> org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.fini
> shed(ProjectHelperImpl.java:821)
>         at 
> org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.
> endElement(ProjectHelperImpl.java:300)
>         at 
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE
> lement(Unknown Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> ContentDispatcher.dispatch(Unknown Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(Unknown Source)
>         at 
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at 
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         
> My 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.                     
>                     -->
> <!-- History:                                                 
>                     -->
> <!-- 2004-06-08 eraonel exclude aue, bros and upfwk for 
> javac.                    -->
> <!-- 2004-06-15 eraonel ant task for jalopy.			
> 		  -->
> <!-- 2004-06-15 eraonel removing unesseceray tasks, commands 
> and comments.        -->
> 
> <project basedir="." default="all" name="boam">
> 	
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- initialize properties                                  
>               -->
>   <!-- 
> ==============================================================
> ====== -->
>      <target name="init">
> 
>        	<!-- boam directories -->
>         <property name="classes.dir" value="../classes"/>
>         <property name="jar.dir" value="../lib.java"/>
>         <property name="simcello.dir" 
> value="/vobs/rbs/sw/rbssw1/simcello/mp_lm"/>
>         <property name="bros_dm.dir" 
> value="/vobs/rbs/sw/rbssw1/boam_dm/bros_dm"/>
> 
>        	<!-- jalopy directories -->
> 	<property name="jalopy.ant.dir" 
> value="/vobs/rbs/sw/rbssw_tools/boam_tools/jalopy-ant"/>
> 	<property name="jalopy.dir" 
> value="/vobs/rbs/sw/rbssw_tools/boam_tools/jalopy"/>
> 
>         <!-- jar files -->
>         <property name="boam.jar" value="${ant.project.name}.jar"/>
> 	
> 	<!-- cello Libraries -->
>         <property name="cello.lib.dir" 
> value="/vobs/cello/struct/cello_dp/lib/jvm" />
>         <property name="cello.java.libs" 
> value="${cello.lib.dir}/cma.jar:
>         ${cello.lib.dir}/foundation.jar:${cello.lib.dir}/oms.jar:
>         
> ${cello.lib.dir}/vbjorb.jar:${cello.lib.dir}/install_stubbed/a
> sms.jar"/>
> 
>         <!-- creating directories -->
> 	<mkdir dir="${classes.dir}"/>
>         <mkdir dir="${jar.dir}"/>
> 
> 	 <!-- 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}"/>
>      </target>
> 
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Defines the Jalopy task                                
>               -->
>   <!-- 
> ==============================================================
> ====== -->
>   <taskdef name="jalopy"
>            classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
>        <classpath>
>          <fileset dir="${jalopy.ant.dir}/lib">
>            <include name="*.jar" />
>          </fileset>
>        </classpath>
>   </taskdef>
> 
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Compiles the project sources                           
>               -->
>   <!-- 
> ==============================================================
> ====== -->
> 
> 
>     <target depends="init" name="compile">
>        <javac debug="true" deprecation="true" 
> destdir="${classes.dir}" srcdir="." fork="true" 
> debuglevel="lines,vars,source">
> 	<classpath>
>            <pathelement path="${cello.java.libs}"/>
>            </classpath>
>             <exclude name="se/ericsson/wcdma/rbs/boam/pms/tb/"/>
>             <exclude name="se/ericsson/wcdma/rbs/boam/conv/"/>
> 	    <exclude name="se/ericsson/wcdma/rbs/boam/aue/"/>
> 	    <exclude name="se/ericsson/wcdma/rbs/boam/upfwk/"/>
> 	    <exclude name="se/ericsson/wcdma/rbs/boam/bros/"/>
>         </javac>
>     </target>
> 
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Formats all source files                               
>               -->
>   <!-- 
> ==============================================================
> ====== -->
> 
>  <target name="format" depends="compile">
> 
>     <!--
> 
>       Invokes Jalopy as follows:
> 
>       - All formatted files will have unix fileformat (\n)
>       - Load your code convention from the given url
>       - Override the convention to use the file history feature
>       - Override the convention to use alder32 checksums of 
> files for history testing
>       - Override the convention to use loglevel "info"
>       - Override the convention to use 2 threads
>       - The import optimization feature will work (if enabled 
> in the active
>         convention), because a classpath reference is specified
> 
>         Don't forget to setup an include pattern as Jalopy 
> truly expects
>         valid Java source files as input!
> 
>       -->
>     <jalopy fileformat="unix"
>             convention="${jalopy.dir}/cfg/sun.xml"
>             history="file"
>             historymethod="adler32"
>             loglevel="info"
>             threads="2"
>         <fileset dir="${basedir}">
>         <include name="**/*.java" />
>       </fileset>
>     </jalopy>
>   </target>
> 
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Make a jar container for sorouce files                 
>               -->
>   <!-- 
> ==============================================================
> ====== -->
> 
>     <target depends="init,compile" name="jar">
>       	<jar basedir="${classes.dir}" compress="true" 
> jarfile="${jar.dir}/${boam.jar}">
>             <exclude name="**/*.java"/>
>             <exclude name="myapp.mf"/>
>             <exclude name="${jar.dir}"/>
>             <exclude name="apidoc"/>
>         </jar>
>         <copy file="${jar.dir}/${boam.jar}" todir="${simcello.dir}"/>
>         <copy file="${jar.dir}/${boam.jar}" todir="${bros_dm.dir}"/>
>     </target>
> 
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Do all needed for a distribution                       
>               -->
>   <!-- 
> ==============================================================
> ====== -->
>     <target depends="init,jar" description="Build 
> everything." name="all">
>         <echo message="${ant.project.name} built"/>
>     </target>
>   <!-- 
> ==============================================================
> ====== -->
>   <!-- Clean all class files and remove jar.                  
>               -->
>   <!-- 
> ==============================================================
> ====== -->
>     <target depends="init" description="Clean all build 
> products." name="clean">
>         <delete>
>             <fileset dir="${classes.dir}">
>                 <include name="**/*.class"/>
>             </fileset>
>         </delete>
>     <delete file="${boam.dir}/${boam.jar}"/>
>         <delete dir="apidoc"/>
>     </target>
> 
> </project>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message