~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/build.xml

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
  <target name="test" depends="deploy" description="Run the standard test suite">
175
175
    <mkdir dir="${target.junit}"/>
176
176
    <junit fork="yes" haltonfailure="no" printsummary="on" showoutput="yes">
 
177
        <jvmarg value="-Djsword.bible.dir=${target.deploy}/resource"/>
177
178
      <test name="CommonAllTests" todir="${target.junit}"/>
178
179
      <test name="JSwordAllTests" todir="${target.junit}"/>
179
180
      <test name="MapAllTests" todir="${target.junit}"/>
320
321
      </commandline>
321
322
    </cvs>
322
323
  </target>
323
 
  
 
324
 
324
325
  <!--=======================================================================-->
325
326
  <target name="jnlp.prepare" depends="jar" description="moves files to correct location for JNLP deploy">
326
327
    <mkdir dir="${target.jnlp}"/>
341
342
  </target>
342
343
  
343
344
  <!--=======================================================================-->
344
 
 
345
345
  <target name="jnlp.keygen" description="Generates a key for use in signing the JARs" unless="keystore.exists" depends="init">
346
346
    <echo message="Generating keystore for webstart testing"/>
347
347
    <genkey alias="${jnlp.alias}" storepass="${jnlp.password}" keystore="${jnlp.keystore}">
368
368
      </fileset>
369
369
    </signjar>
370
370
  </target>
 
371
 
 
372
  <!--=======================================================================-->
 
373
  <target name="tomcatinit">
 
374
    <property name="web.path" value="/jsword"/>
 
375
    <property name="url" value="http://localhost:8080/manager"/>
 
376
    <!-- You will need to -Dusername=fred -Dpassword=secret -->
 
377
    <!-- property name="username" value="myusername"/ -->
 
378
    <!-- property name="password" value="mypassword"/ -->
 
379
 
 
380
                <taskdef name="deploy"    classname="org.apache.catalina.ant.DeployTask"/>
 
381
                <taskdef name="install"   classname="org.apache.catalina.ant.InstallTask"/>
 
382
                <taskdef name="list"      classname="org.apache.catalina.ant.ListTask"/>
 
383
                <taskdef name="reload"    classname="org.apache.catalina.ant.ReloadTask"/>
 
384
                <taskdef name="remove"    classname="org.apache.catalina.ant.RemoveTask"/>
 
385
                <taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/>
 
386
                <taskdef name="roles"     classname="org.apache.catalina.ant.RolesTask"/>
 
387
                <taskdef name="start"     classname="org.apache.catalina.ant.StartTask"/>
 
388
                <taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/>
 
389
                <taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"/>
 
390
  </target>
 
391
 
 
392
  <!--=======================================================================-->
 
393
  <target name="install" description="Install web application" depends="tomcatinit, doc.files">
 
394
    <install url="${url}" username="${username}" password="${password}" path="${path}" war="file://$basedir}/${target.root}/doc"/>
 
395
  </target>
 
396
 
 
397
  <!--=======================================================================-->
 
398
  <target name="reload" description="Reload web application" depends="tomcatinit, doc.files">
 
399
    <reload url="${url}" username="${username}" password="${password}" path="${path}"/>
 
400
  </target>
 
401
 
 
402
  <!--=======================================================================-->
 
403
  <target name="remove" description="Remove web application" depends="tomcatinit">
 
404
    <remove url="${url}" username="${username}" password="${password}" path="${path}"/>
 
405
  </target>
 
406
 
371
407
</project>