ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <billr...@attglobal.net>
Subject RE: Problem to compile target
Date Thu, 05 Feb 2004 15:51:13 GMT
I would try changing the classpath to something like this --
<classpath>
  <pathelement path="${cma}"/>
  <pathelement path="${foundation}"/>
  <pathelement path="${oms}"/>
  <pathelement path="${vbjorb}"/>
  <pathelement path="${asms}"/>
</classpath>


Bill Rich
Wilandra Consulting LLC
1325 Addiewell Place
San Jose, CA  95120-3905
phone:      +1 408 268-2452
mobile:     +1 408 410-9713
Santa Cruz: +1 831 464-9007
fax:        +1 413 669-9716
billrich@wilandra.com or billrich@attglobal.net
http://www.wilandra.com

-----Original Message-----
From: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com]
Sent: Wednesday, February 04, 2004 11:54 PM
To: 'Ant Users List'
Subject: Problem to compile target


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>



This communication is confidential and intended solely for the addressee(s). Any
unauthorized review, use, disclosure or distribution is prohibited. If you believe this
message has been sent to you in error, please notify the sender by replying to this
transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interruption, unauthorized
amendment, tampering and viruses, and we only send and receive e-mails on the basis that
we are not liable for any such corruption, interception, amendment, tampering or viruses
or any consequences thereof.


---------------------------------------------------------------------
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