What I am trying to say is this...  My ~/.bashrc resembles the following:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi

----

This is of course a stock ~/.bashrc file...

I am saying, make the ~/.bashrc look something like this (I am guessing here on the java installation dir - so take witha grain of salt):

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi

export JAVA_HOME=/opt/SUNWappserver/jdk
export PATH=${JAVA_HOME}/bin:${PATH}


I am guessing that wscompile task is actually shelling out to the OS to execute. If that happens, the new shell will execute your ~/.bashrc. If the above are not set, based upon your install JDK, its not being found in the PATH and you are getting the gcc java version... I will have to examine your build.xml either tonight or tomorrow morning...gotta go home soon and mow the lawn...

Sanae Benchaaboun wrote:
What did you mean by putting all the export in a bashrc? Here is the build.xml

Sanae Benchaaboun
Webmaster Supervisor
Maryland Insurance Administration
Tel: (410)468-2077
[EMAIL PROTECTED]
------------------------------------------------------------------------

<?xml version="1.0" encoding="iso-8859-1"?>

<project name="StateApi_Client" default="dist" basedir=".">
        <property name="src" location="src" />
        <property name="src-gen" location="src-gen" />
        <property name="build" location="build" />
        <property name="dist" location="dist" />
        <property name="lib" location="lib" />
        <property name="javadoc.output" location="doc/html" />

        <path id="project.classpath">
        <fileset dir="${java.home}/../lib">
            <include name="tools.jar"/>
        </fileset>
        <fileset dir="${java.home}/lib">
            <include name="tools.jar"/>
        </fileset>
        <fileset dir="lib">
            <filename name="security-plugin.jar"/>
            <filename name="xws-security_jaxrpc.jar"/>
            <filename name="xws-security.jar"/>
        </fileset>
        <fileset dir="lib" includes="*.jar"/>
        </path>
<path id="xjc-classpath">
        <fileset dir="lib" includes="*.jar"/>
    </path>

    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
      <classpath refid="xjc-classpath" />
    </taskdef>

        <!-- Add wscompile and wsdeploy tasks -->
        <path id="wscompile.classpath">
        <fileset dir="${java.home}/../lib">
            <include name="tools.jar"/>
        </fileset>
        <fileset dir="${java.home}/lib">
            <include name="tools.jar"/>
        </fileset>
        <fileset dir="lib" includes="*.jar"/>
        </path>
        <taskdef name="wscompile" 
classname="com.sun.xml.rpc.tools.ant.Wscompile">
                <classpath refid="wscompile.classpath" />
        </taskdef>
<!-- define the targets --> <target name="init" description="create the build directory structure" depends="clean">
        <mkdir dir="${build}" />
        <mkdir dir="${build}/jar" />
        <mkdir dir="${src-gen}" />
                <mkdir dir="${dist}" />
                <mkdir dir="${dist}/lib" />
   </target>
<target name="generate_classes" description="generate the wsdl stubs" depends="init">
                <echo file="${src-gen}/wsconfig.xml"><![CDATA[<?xml version="1.0" 
encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config";>
<wsdl location="${src}/StateApiService.wsdl" 
packageName="org.naic.serff.stateapi.service" />
</configuration>]]></echo>
<wscompile fork="true" keep="true" client="true" debug="true" features="documentliteral,wsi" base="${build}/jar" sourceBase="${src-gen}" xPrintStackTrace="true" model="${build}/jar/StateApiService_model.xml.gz" verbose="false" config="${src-gen}/wsconfig.xml">
                        <classpath>
                                <path refid="project.classpath" />
                        </classpath>
                </wscompile>
        <!--<xjc schema="${src}/ClientTypes.xsd" package="org.naic.serff.stateapi.jaxb" 
target="${src-gen}"/>-->
   </target>
<target name="compile" description="compile the project" depends="generate_classes">
      <javac debug="true" srcdir="${src-gen}" destdir="${build}/jar" 
excludes="org/naic/serff/stateapi/service/**/*"
            classpathref="project.classpath">
         <classpath location="${build}/jar"/>
      </javac>
<javac debug="true" srcdir="${src}" destdir="${build}/jar" classpathref="project.classpath">
         <classpath location="${build}/jar"/>
      </javac>
   </target>
<target name="dist" description="build the project" depends="compile">
        <copy file="user.properties" todir="${dist}"/>
        <copy todir="${build}/jar">
                <fileset dir="${lib}">
                <include name="*.jar"/>
                        <exclude name="junit.jar"/>
                        <exclude name="mail.jar"/>
                </fileset>
        </copy>
        <copy todir="${dist}/lib">
          <fileset dir="${lib}">
                <include name="*.jar"/>
          </fileset>
        </copy>
        <jar compress="true" basedir="${build}/jar" 
jarfile="${dist}/TestClient.jar"/>
    </target>
<target name="doc" description="create the documentation for the project" >
      <mkdir dir="${javadoc.output}"/>
      <javadoc destdir="${javadoc.output}" classpathref="project.classpath" 
packagenames="org.naic.model">
         <fileset dir="${src}">
            <include name="**/*.java"/>
         </fileset>
      </javadoc>
   </target>
<target name="clean" description="clean up" >
                <delete dir="${build}"/>
                <delete dir="${javadoc.output}"/>
        <delete dir="${src-gen}"/>
        <delete dir="${dist}"/>         
   </target>
</project>


------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim

Reply via email to