Hi!

I seem to have avery strange problem with ant 1.4 ant 1.4.1

The problem is that when i'm using ant 1.4.1 and trying to build jars ant
keeps hanging intermittently , but when i use ant 1.4 it goes smooth without
any problem except for one jar where it needs to compile 9 source files i'm
pasting the code which i use , did anyone have  aproblem like this before .


Code

<antcall target="makejar">
                             <param name="dir"
value="${dir}/com/abc/def/session/xyz"/>
                             <param name="val" value="ejb_session_Xyz.jar"/>
                             <param name="ejbdir" value="${ejbdir}"/>
                        </antcall>

and the make jar target looks something like this 

<target name="makejar" >
    
        <mkdir dir="${dir}/build/META-INF" />
        <copy todir="${dir}/build/META-INF" >
            <fileset dir="${dir}" >
               <include name="**/*.xml"/>
           </fileset>
        </copy>
                
        <javac srcdir="${dir}" destdir="${dir}/build" debug="yes" />

        <!-- jar jarfile="ejb.jar" basedir="build" /-->
        <exec executable="jar" dir="${dir}/build">
            <arg value="cfM"/>
            <arg value="ejb.jar"/>
            <arg value="META-INF"/>
            <arg value="${dir}"/>
        </exec>

        <java classname="weblogic.ejbc" dir="${dir}/build" fork="yes"
maxmemory="64m">
            <arg value = "ejb.jar" /> 
            <arg value = "${val}" />             
        </java>

        <copy file="${dir}/build/${val}" todir="${ejbdir}" />
        
        <antcall target="clean" >
                <param name="dir" value="${dir}"/>      
        </antcall>
        
    </target>

Any ideas will be of great help

Regards
Sharanya Vemu

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

Reply via email to