ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Warner" <jwar...@ccs.nrl.navy.mil>
Subject Need classpath help.
Date Thu, 18 Apr 2002 19:38:35 GMT
I have a project that works great on W2K. I moved the project on to a
Solaris 2.6 box and changed the build.xml file accordingly and I'm
getting the following error;
 
[javac]
/afs/cmf/users/jwarner/EZM/src/mil/nrl/ezmoney/common/security/Encryptio
n.java:8: cannot resolve symbol
    [javac] symbol  : class BI  
    [javac] location: package core
    [javac] import cryptix.util.core.BI;         // Cryptix
    [javac]                          ^
 
There are more that I'm not including because they are the same error,
but basically, it doesn't seem to be finding the crypitx32.jar file. So,
I looked at the results of "ant -debug" and it looks as if everything in
the build.xml file is parsing right and its showing the full directory
path for the cryptix library and it's correct. The only thing that seems
weird to me is that the java.class.path doesn't show the cryptix library
listed and I'm thinking that it should.
Anyway, does anyone have an idea or know what could be wrong here?
 
Here are the relevant pieces of my build.xml file;
 
<project name="EZM" default="build" basedir=".">
    <target name="init">
        <tstamp/>
    </target>

 
   <property name="project" value="EZM" />
  <property environment="env" />
  <property name="build.sysclasspath" value="last"/>
  <property name="path" value="${user.home}/${project}"/>
  <property name="3rdPartyLibs" value="${path}/3rdParty" />
  <property name="build"   value="${path}/build" />
 
  <path id="classpath.path">
      <fileset dir="${env.JAVA_HOME}/lib">
        <include name="*.jar">
      </fileset>
      <fileset dir="${env.JAVA_HOME}/jre/lib">
        <include name="rt.jar">
      </fileset>
      <fileset dir="${3rdPartyLibs}/cryptix">
        <include name="cryptix32.jar">
      </fileset>
  </path>
                             
  <target name="build" depends="prepare" description="Blah">
       <javac fork="yes"
                 srcdir="src"
                 destdir="${build}/WEB-INF/classes"
                 classpath="${3rdPartyLibs}/cryptix/cryptix32.jar">

            <include name="**/*.java">
            <classpath refid="classpath.path" />
        </javac>
   . <!-bunch of copy commands here -->
  </target>
</project>
 
Also, Question 2
How do I do something like the following;
If OS="SunOs" then basepath = . 
If OS="Windows NT" then basepath = .
 
Thanks all.. in advance..
-          John
 

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