Changeset 460


Ignore:
Timestamp:
06/01/11 17:10:53 (2 years ago)
Author:
tadamusiak
Message:

excluding OntologyParser?.java from compile task for hudson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ontoCAT/build.xml

    r458 r460  
    3535 
    3636        <target name="compile"> 
    37                 <javac srcdir="src:test" destdir="bin" nowarn="on"> 
     37                <javac srcdir="src:test" excludes="**/OntologyParser.java" destdir="bin" nowarn="on"> 
    3838                        <classpath refid="test.classpath" /> 
    3939                </javac> 
    4040                <!-- deliver config files --> 
    41              <copy todir="bin"> 
    42                 <fileset dir="src" excludes="**/*.java"/> 
    43              </copy> 
     41                <copy todir="bin"> 
     42                        <fileset dir="src" excludes="**/*.java" /> 
     43                </copy> 
    4444        </target> 
    4545 
    4646        <target name="clean-dist"> 
    47                   <delete> 
    48                     <fileset dir="dist" includes="*.jar"/> 
    49                         <fileset dir="dist" includes="*.zip"/> 
    50                   </delete> 
    51         </target> 
    52          
     47                <delete> 
     48                        <fileset dir="dist" includes="*.jar" /> 
     49                        <fileset dir="dist" includes="*.zip" /> 
     50                </delete> 
     51        </target> 
     52 
    5353        <target name="dist" depends="clean-dist, compile, test-html, jar, jar-with-deps, jar-with-deps-small, javadoc, dist-no-test"> 
    5454        </target> 
     
    6969                </zip> 
    7070        </target> 
    71          
     71 
    7272        <target name="jar-with-deps"> 
    7373                <jar destfile="dist/${ant.project.name}-${version}-with-deps.jar" filesetmanifest="mergewithoutmain"> 
     
    102102                </jar> 
    103103        </target> 
    104          
     104 
    105105        <!-- This uses the custom xstream-gae.jar that works on google app engine--> 
    106106        <target name="jar-with-deps-gae"> 
     
    135135                </jar> 
    136136        </target> 
    137          
     137 
    138138        <target name="jar-with-deps-small"> 
    139                         <jar destfile="dist/${ant.project.name}-${version}-with-deps-small.jar" filesetmanifest="mergewithoutmain"> 
    140                                 <manifest> 
    141                                         <attribute name="Main-Class" value="uk.ac.ebi.ontocat.examples.Example3" /> 
    142                                         <attribute name="Class-Path" value="." /> 
    143                                 </manifest> 
    144                                 <fileset dir="bin" /> 
    145                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jargs.jar" /> 
    146                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/log4j-1.2.15.jar" /> 
    147                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xpp3_min-1.1.4c.jar" /> 
    148                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/opencsv-1.8.jar" /> 
    149                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/owlapi-3.2.2/owlapi-bin.jar" /> 
    150                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ols-client.jar" /> 
    151                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/axis.jar" /> 
    152                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jaxrpc.jar" /> 
    153                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-logging-1.1.1.jar" /> 
    154                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-discovery-0.2.jar" /> 
    155                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/wsdl4j-1.6.2.jar" /> 
    156                                 <!--  
     139                <jar destfile="dist/${ant.project.name}-${version}-with-deps-small.jar" filesetmanifest="mergewithoutmain"> 
     140                        <manifest> 
     141                                <attribute name="Main-Class" value="uk.ac.ebi.ontocat.examples.Example3" /> 
     142                                <attribute name="Class-Path" value="." /> 
     143                        </manifest> 
     144                        <fileset dir="bin" /> 
     145                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jargs.jar" /> 
     146                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/log4j-1.2.15.jar" /> 
     147                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xpp3_min-1.1.4c.jar" /> 
     148                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/opencsv-1.8.jar" /> 
     149                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/owlapi-3.2.2/owlapi-bin.jar" /> 
     150                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ols-client.jar" /> 
     151                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/axis.jar" /> 
     152                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/jaxrpc.jar" /> 
     153                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-logging-1.1.1.jar" /> 
     154                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-discovery-0.2.jar" /> 
     155                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/wsdl4j-1.6.2.jar" /> 
     156                        <!--  
    157157                                <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/ehcache-core-1.7.2.jar" /> 
    158158                                <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/lib/slf4j-log4j12-1.5.11.jar" /> 
    159159                                <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/ehcache-core-1.7.2/lib/slf4j-api-1.5.11.jar" /> 
    160160                                --> 
    161                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-lang-2.4.jar" /> 
    162                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xstream-1.3.1.jar" /> 
    163                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-validator-1.3.1/commons-validator-1.3.1.jar" /> 
    164                                 <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/HermiT/org.semanticweb.HermiT.jar" /> 
    165                         </jar> 
    166                 </target> 
     161                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-lang-2.4.jar" /> 
     162                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/xstream-1.3.1.jar" /> 
     163                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/commons-validator-1.3.1/commons-validator-1.3.1.jar" /> 
     164                        <zipfileset excludes="META-INF/*.SF,**/*.java" src="lib/HermiT/org.semanticweb.HermiT.jar" /> 
     165                </jar> 
     166        </target> 
    167167 
    168168        <target name="jar"> 
     
    172172        </target> 
    173173 
    174         <target name="test" > 
     174        <target name="test"> 
    175175                <delete dir="${test.reports}" /> 
    176176                <mkdir dir="${test.reports}" /> 
     
    196196                </junitreport> 
    197197        </target> 
    198          
     198 
    199199        <target name="update-sf"> 
    200                         <input message="Please enter your username in ontocat@SF" 
    201                                addproperty="tc.user" 
    202                                defaultvalue="tadamusiak" /> 
    203                         <input message="Please enter your password for ontocat@SF:" 
    204                                addproperty="tc.pass" /> 
    205                  
     200                <input message="Please enter your username in ontocat@SF" addproperty="tc.user" defaultvalue="tadamusiak" /> 
     201                <input message="Please enter your password for ontocat@SF:" addproperty="tc.pass" /> 
     202 
    206203                <!-- request interactive shell --> 
    207                         <sshexec host="shell.sourceforge.net" 
    208                                  trust="true" 
    209                                  verbose="true" 
    210                                  username="${tc.user},ontocat" 
    211                                  password="${tc.pass}" 
    212                                  command="create" /> 
     204                <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="create" /> 
    213205                <!-- archive the old files --> 
    214                         <sshexec host="shell.sourceforge.net" 
    215                                  trust="true" 
    216                                  verbose="true" 
    217                                  username="${tc.user},ontocat" 
    218                                  password="${tc.pass}" 
    219                                  command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 
    220                  
     206                <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 
     207 
    221208                <!-- update the README --> 
    222                         <scp file="dist/release_notes.txt" 
    223                              trust="true" 
    224                              verbose="true" 
    225                              todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/README" 
    226                              password="${tc.pass}"> 
    227                         </scp> 
    228                  
     209                <scp file="dist/release_notes.txt" trust="true" verbose="true" todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/README" password="${tc.pass}"> 
     210                </scp> 
     211 
    229212                <!-- copy new release  --> 
    230                         <scp file="dist/${ant.project.name}-${version}.zip" 
    231                                  trust="true" 
    232                                  verbose="true" 
    233                                  todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/." 
    234                                  password="${tc.pass}"> 
    235                         </scp> 
    236                  
    237                  
     213                <scp file="dist/${ant.project.name}-${version}.zip" trust="true" verbose="true" todir="${tc.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/release/." password="${tc.pass}"> 
     214                </scp> 
     215 
     216 
    238217                <!-- shutdown interactive shell --> 
    239                                 <sshexec host="shell.sourceforge.net" 
    240                                          trust="true" 
    241                                          verbose="true" 
    242                                          username="${tc.user},ontocat" 
    243                                          password="${tc.pass}" 
    244                                          command="shutdown" /> 
    245                 </target> 
    246          
    247          
    248         <property environment="env"/> 
     218                <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${tc.user},ontocat" password="${tc.pass}" command="shutdown" /> 
     219        </target> 
     220 
     221 
     222        <property environment="env" /> 
    249223        <property name="hudson.user" value="${env.SFUSER}" /> 
    250224        <property name="hudson.pass" value="${env.SFPASS}" /> 
    251225        <target name="hudson-to-sf"> 
    252                         <!-- request interactive shell --> 
    253                                 <sshexec host="shell.sourceforge.net" 
    254                                          trust="true" 
    255                                          verbose="true" 
    256                                          username="${hudson.user},ontocat" 
    257                                          password="${hudson.pass}" 
    258                                          command="create" /> 
    259                         <!-- archive the old files  
     226                <!-- request interactive shell --> 
     227                <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${hudson.user},ontocat" password="${hudson.pass}" command="create" /> 
     228                <!-- archive the old files  
    260229                                <sshexec host="shell.sourceforge.net" 
    261230                                         trust="true" 
     
    265234                                         command="mv /home/frs/project/o/on/ontocat/ontoCAT/release/*.zip /home/frs/project/o/on/ontocat/ontoCAT/archive/." /> 
    266235                        --> 
    267                         <!-- update the README --> 
    268                                 <scp file="dist/release_notes.txt" 
    269                                      trust="true" 
    270                                      verbose="true" 
    271                                      todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/README" 
    272                                      password="${hudson.pass}"> 
    273                                 </scp> 
    274                          
    275                         <!-- copy new release  --> 
    276                                 <scp file="dist/${ant.project.name}-${version}.zip" 
    277                                          trust="true" 
    278                                          verbose="true" 
    279                                          todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/ontocat-snapshot.zip" 
    280                                          password="${hudson.pass}"> 
    281                                 </scp> 
    282                          
    283                          
    284                         <!-- shutdown interactive shell --> 
    285                                         <sshexec host="shell.sourceforge.net" 
    286                                                  trust="true" 
    287                                                  verbose="true" 
    288                                                  username="${hudson.user},ontocat" 
    289                                                  password="${hudson.pass}" 
    290                                                  command="shutdown" /> 
    291                         </target> 
     236                <!-- update the README --> 
     237                <scp file="dist/release_notes.txt" trust="true" verbose="true" todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/README" password="${hudson.pass}"> 
     238                </scp> 
     239 
     240                <!-- copy new release  --> 
     241                <scp file="dist/${ant.project.name}-${version}.zip" trust="true" verbose="true" todir="${hudson.user},ontocat@frs.sourceforge.net:/home/pfs/project/o/on/ontocat/ontoCAT/nightly_build/ontocat-snapshot.zip" password="${hudson.pass}"> 
     242                </scp> 
     243 
     244 
     245                <!-- shutdown interactive shell --> 
     246                <sshexec host="shell.sourceforge.net" trust="true" verbose="true" username="${hudson.user},ontocat" password="${hudson.pass}" command="shutdown" /> 
     247        </target> 
    292248 
    293249</project> 
Note: See TracChangeset for help on using the changeset viewer.