1 Reply Latest reply: Apr 30, 2013 7:49 AM by MichaelBaygeldin RSS

    Ant does not  wait for ojdeploy to complete

    MichaelBaygeldin
      Hello Experts!
      I have ant script which calls ojdeploy utility to build EAR file. Here is part of its code:
      <!-- Call ojdeploy utility to build EAR file -->
      <target name="ojdeploy" depends="replace">  
          <taskdef name="ojdeploy" 
                 classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask" 
                 uri="oraclelib:OJDeployAntTask"  
                 classpath="${oracle.jdeveloper.ant.library}"/>  
          
           <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask" 
                         executable="${oracle.jdeveloper.ojdeploy.path}"  
                         failonerror="true"
                         ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"  
                         ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">  
                <ora:deploy>  
                     <ora:parameter name="workspace" value="${oracle.jdeveloper.workspace.path}"/>  
                     <ora:parameter name="project" value="${oracle.jdeveloper.project.name}"/>  
                     <ora:parameter name="profile" value="${oracle.jdeveloper.deploy.profile.name}"/>  
                     <ora:parameter name="outputfile" value="${oracle.jdeveloper.deploy.outputfile}"/>            
                </ora:deploy>  
          </ora:ojdeploy>  
      </target>
      I have associated properties in build.properties file.
      When I run ant - I see something like this:
      replace:
      
      ojdeploy:
      
      BUILD SUCCESSFUL
      Total time: 40 seconds
      But there is no EAR file in deploy folder! But... If I wait for example 1 minute this file appears! Looks like ojdeploy utility is still working, but ant writes "Build successsfull!"
      How to make ant wait for ojdeploy to complete?
      Any ideas?