Project

General

Profile

« Previous | Next » 

Revision 3210

Added by Jing Tao over 17 years ago

Removed obsolete targets which handled gt3 stuff.

View differences:

build.xml
1388 1388
    </xslt>
1389 1389
  </target>
1390 1390

  
1391
 <target name="gridinit" depends="init">
1392
   <property name="java2wsdl.tool" value="org.apache.axis.wsdl.Java2WSDL" />
1393
   <property name="wsdldecorator.tool" value="org.globus.ogsa.tools.wsdl.DecorateWSDL" />
1394
   <property name="wsdl.tool" value="org.globus.ogsa.tools.wsdl.GSDL2Java"/>
1395
   <property environment="env"/>
1396
   <property name="binding.file" value="${env.GLOBUS_LOCATION}/schema/ogsi/ogsi_bindings.wsdl"/>
1397
    <path id="webservicepath">
1398
        <pathelement location="."/>
1399
        <pathelement location="${env.JAVA_HOME}/../lib/tools.jar"/>
1400
        <pathelement location="${build.dest}"/>
1401
        <fileset dir="${env.GLOBUS_LOCATION}/lib">
1402
           <include name="*.jar"/>
1403
        </fileset>
1404
      </path>
1405
</target>
1406

  
1407
 <target name="gridprepare" depends="gridinit, prepare">
1408
 </target>
1409

  
1410
  <target name="compileinterface" depends="clean, gridprepare">
1411
    <javac srcdir="${build.src}" destdir="${build.dest}" includes="**/${interface.name}.java" />
1412
  </target>
1413

  
1414
  <target name="generateWSDL" depends="compileinterface">
1415
    <echo message="Generating wsdl from ${interface.name} interface"/>
1416
    <java classname="${java2wsdl.tool}"
1417
          dir="${build.src}" fork="yes"
1418
          classpathref="webservicepath"  failonerror="true" >
1419
      <arg value="-P"/>
1420
      <arg value="${interface.name}PortType"/>
1421
      <arg value="-S"/>
1422
      <arg value="${interface.name}Service"/>
1423
      <arg value="-y"/>
1424
      <arg value="WRAPPED"/>
1425
      <arg value="-u"/>
1426
      <arg value="LITERAL"/>
1427
      <arg value="-l"/>
1428
      <arg value="http://localhost/ogsa/services/${interface.name}Service"/>
1429
      <arg value="-n"/>
1430
      <arg value="http://${services.namespace}/${interface.name}"/>
1431
      <arg value="${interface.package}.${interface.name}"/>
1432
    </java>
1433
  </target>
1434

  
1435
   <target name="decorateWSDL" depends="generateWSDL">
1436
      <property name="wsdl.file" value="${interface.name}Service.wsdl"/>
1437
      <java classname="${wsdldecorator.tool}" dir="${build.src}"
1438
            fork="yes"
1439
            classpathref="webservicepath" failonerror="true" >
1440
        <arg value="${binding.file}"/>
1441
        <arg value="${wsdl.file}"/>
1442
      </java>
1443
   </target>
1444

  
1445
   <target name="generatestubs" depends="decorateWSDL">
1446
      <echo message=" Generating stubs " />
1447
      <echo message="wsdl file is ${wsdl.file}"/>
1448
      <echo message="build.src is ${build.src}"/>
1449
      <java classname="${wsdl.tool}" dir="${build.src}" fork="yes"
1450
            classpathref="webservicepath" failonerror="true" >
1451
         <arg value="${wsdl.file}"/>
1452
    </java>
1453
  </target>
1454

  
1455
  <target name="compileStubsAndImpl" depends="generatestubs, utilities">
1456
     <echo message=" Compiling stubs " />
1457
     <javac srcdir="${build.src}" destdir="${build.dest}" classpathref="webservicepath" includes="**/${interface.name}/*.java" />
1458
     <echo message=" Compiling impl " />
1459
     <javac srcdir="${build.src}" destdir="${build.dest}" classpathref="webservicepath" classpath="./lib/utilities.jar" includes="**/impl/*.java" />
1460
  </target>
1461

  
1462
  <target name="jarStubsAndImpl" depends="compileStubsAndImpl">
1463
     <echo message=" jar stubs classes " />
1464
     <jar destfile="${build.dir}/${interface.name}-stubs.jar" basedir="${build.dest}" includes="**/${interface.name}/*.class" />
1465
     <echo message=" jar impl classes " />
1466
     <jar destfile="${build.dir}/${interface.name}.jar" basedir="${build.dest}" includes="**/impl/*.class" />
1467
  </target>
1468

  
1469
  <target name="gar" depends="jarStubsAndImpl">
1470
     <echo message=" jar the gar file"/>
1471
     <mkdir dir="${build.dir}/gar"/>
1472
     <mkdir dir="${build.dir}/gar/schema/edu"/>
1473
     <copy file="${build.dir}/${interface.name}.jar" todir="${build.dir}/gar" />
1474
     <copy file="${build.dir}/${interface.name}-stubs.jar" todir="${build.dir}/gar" />
1475
     <copy file="lib/utilities.jar" todir="${build.dir}/gar" />
1476
     <copy file="lib/server-deploy.wsdd" todir="${build.dir}/gar" />
1477
     <copy file="${build.src}/${interface.name}Service.wsdl" todir="${build.dir}/gar/schema/edu" />
1478
     <jar destfile="lib/${interface.name}.gar" basedir="${build.dir}/gar"/>
1479
  </target>
1480

  
1391
 
1481 1392
  <target name="compilewebclient" depends="prepare">
1482 1393
     <javac srcdir="${build.src}" destdir="${build.dest}" includes="**/application/*.java" classpathref="webservicepath" />
1483 1394
  </target>

Also available in: Unified diff