ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharanya Vemu <sharan...@erunway.com>
Subject Ant Hangs
Date Wed, 23 Jan 2002 21:55:23 GMT
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message