Changeset 1103 for extensions/net.sf.basedb.genepattern/trunk/build.xml
- Timestamp:
- May 29, 2009, 8:45:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.genepattern/trunk/build.xml
r1091 r1103 24 24 <property name="javac.encoding" value="UTF-8" /> 25 25 <property name="depend.jars" value="http://base2.thep.lu.se/base/jars/2.12.0" /> 26 <property name="genepattern.jars" value="http://genepattern.broad.mit.edu/gp/downloads" /> 26 27 27 28 <!-- set up classpath for compiling --> … … 112 113 <available classname="net.sf.basedb.info.BioAssaySetInfo" 113 114 classpathref="classpath" property="base2webservice" /> 115 <available classname="org.genepattern.client.GPClient" 116 classpathref="classpath" property="genepattern.lib" /> 114 117 <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 115 118 <fail unless="base2plugins" message="Can't find BASE2CorePlugins.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 116 119 <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 117 120 <fail unless="base2webservice" message="Can't find BASE2WSClient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 118 <echo>Found BASE2Core.jar, BASE2CorePlugins.jar, BASE2Webclient.jar and BASE2WSClient.jar.</echo> 121 <fail unless="genepattern.lib" message="Can't find GenePattern.jar in ./lib/genepattern. Try 'ant download-lib' to download the missing file." /> 122 <echo>Found all required BASE and GenePattern JAR files.</echo> 119 123 </target> 120 124 121 125 <target 122 126 name="download-lib" 123 description="Download BASE 2Core.jar, BASE2Webclient.jar, BASE2CorePlugins.jar and BASE2WSClient.jar"127 description="Download BASE and GenePattern JAR files" 124 128 > 125 129 <echo> 126 130 ------------------------------------------------------- 127 131 NOTE! You may specifiy a different download location by 128 creating the file './build.properties' and 129 setting 'depend.jars' to the URL to download from. 132 creating the file './build.properties' and setting 133 'depend.jars' and 'genepattern.jars' to the URLs to 134 download from. 130 135 ------------------------------------------------------- 131 136 </echo> … … 134 139 <download-lib file="BASE2Webclient.jar" /> 135 140 <download-lib file="BASE2WSClient.jar" /> 141 <!-- We only need some files from the GenePattern.zip file --> 142 <download-lib file="GenePattern.zip" todir="${build}" from="${genepattern.jars}" /> 143 <unzip dest="lib/genepattern" src="${build}/GenePattern.zip"> 144 <patternset> 145 <include name="GenePattern.jar" /> 146 <include name="lib/gp-modules.jar" /> 147 </patternset> 148 <mapper type="flatten"/> 149 </unzip> 136 150 </target> 137 151 138 152 <macrodef name="download-lib" description="Download BASE core JAR files"> 139 153 <attribute name="file" /> 154 <attribute name="todir" default="lib/compile"/> 155 <attribute name="from" default="${depend.jars}" /> 140 156 <sequential> 141 157 <get 142 dest=" lib/compile/@{file}"143 src=" ${depend.jars}/@{file}"158 dest="@{todir}/@{file}" 159 src="@{from}/@{file}" 144 160 usetimestamp="true" 145 161 verbose="true"
Note: See TracChangeset
for help on using the changeset viewer.