Changeset 1395 for extensions
- Timestamp:
- Sep 15, 2011, 2:58:04 PM (12 years ago)
- Location:
- extensions/net.sf.basedb.mev/trunk
- Files:
-
- 1 added
- 1 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.mev/trunk/META-INF/extensions.xml
r1383 r1395 8 8 it import data from the current bioassay set. 9 9 </description> 10 <version>1.8 pre</version>10 <version>1.8-alfa</version> 11 11 <copyright>BASE development team</copyright> 12 12 <email>basedb-users@lists.sourceforge.net</email> … … 25 25 </about> 26 26 <plugin-class>net.sf.basedb.mev.install.Install</plugin-class> 27 <settings> 28 <property name="immediate-execution">1</property> 29 </settings> 27 30 </plugin-definition> 28 31 <plugin-definition id="CghExporterPlugin"> … … 35 38 </about> 36 39 <plugin-class>net.sf.basedb.mev.plugin.CghExporterPlugin</plugin-class> 40 <settings> 41 <property name="everyone-use">1</property> 42 </settings> 37 43 </plugin-definition> 38 44 <plugin-definition id="TdmsExporterPlugin"> … … 45 51 </about> 46 52 <plugin-class>net.sf.basedb.mev.plugin.TdmsExporterPlugin</plugin-class> 53 <settings> 54 <property name="everyone-use">1</property> 55 </settings> 47 56 </plugin-definition> 48 57 <extension -
extensions/net.sf.basedb.mev/trunk/README
r1383 r1395 20 20 2. Unpack the downloaded file to a directory of your choice. 21 21 3. Copy the mev-launcher.jar file to your BASE plug-ins directory. Look in 22 your 'base.config' file if you don't know where this is.22 your 'base.config' file if you don't know where this is. 23 23 4. Go to 'Administrate->Plug-ins & Extensions->Overview' page. 24 24 5. Run the installation wizard and select to install 'mev-launcher.jar'. … … 35 35 for the four CGH file columns (chromosome, start, end and description). 36 36 Finish the configuration. 37 8. Share the TDMS and CGH exporter plug-ins, including the configuration 38 that you created in the previous step, plug-ins to the desired 39 users and/or groups. Otherwise, only the root user and administrators 40 can use MeV. 37 8. The TDMS and CGH exporter plug-ins are shared to everyone by default. If 38 that isn't desired, you may want to change this at this stage. 41 39 9. Done. 42 40 … … 67 65 2. Type `ant download-lib` to automatically download the BASE core JAR files that 68 66 are neeed for compilation. You can also do this manually by copying the 69 base-core-3.0.0.jar, base-webclient-3.0.0.jar, base-coreplugins-3.0.0.jar and base-webservices-client-3.0.0.jar70 from the BASE installation directory (<basedir>/www/WEB-INF/lib/) to the71 ./lib/compile directory.67 base-core-3.0.0.jar, base-webclient-3.0.0.jar, base-coreplugins-3.0.0.jar and 68 base-webservices-client-3.0.0.jar from the BASE installation directory 69 (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. 72 70 73 71 3. Type 'ant' to compile the code and generate the 'mev-launcher.jar' file -
extensions/net.sf.basedb.mev/trunk/RELEASE
r1239 r1395 15 15 In build.xml: 16 16 <property name="version" value="A.B" /> 17 <property name=" minbaseversion" value="X.Y" />17 <property name="depend.base-version" value="X.Y.Z" /> 18 18 19 19 Run `ant update-version`. This should put the version 20 numbers in a lot of files, including, Mev.java ,21 META-INF/extensions.xml and META-INF/base-plugins.xml.20 numbers in a lot of files, including, Mev.java and 21 META-INF/extensions.xml. 22 22 23 23 Check (and update if needed) the README file and … … 66 66 11. Update the version numbers. 67 67 68 In build.xml: <property name="version" value="A.(B+1) pre" />68 In build.xml: <property name="version" value="A.(B+1)-dev" /> 69 69 Run `ant update-version` and commit the changes to 70 70 subversion: -
extensions/net.sf.basedb.mev/trunk/build.xml
r1384 r1395 10 10 <!-- variables used --> 11 11 <property name="name" value="mev-launcher" /> 12 <property name="version" value="1.8pre" /> 13 <property name="minbaseversion" value="3.0" 14 description="Minimal BASE version required by the plug-ins" /> 12 <property name="version" value="1.8-alfa" /> 15 13 <property name="src" location="src" description="Location of source files" /> 16 14 <property name="build" location="build" description="Location of compiled files" /> … … 25 23 <property name="javac.target" value="1.6" /> 26 24 <property name="javac.encoding" value="UTF-8" /> 27 <property name="depend.jars" value="http://base2.thep.lu.se/base/jars/" /> 25 <property name="depend.base-version" 26 value="3.0.0" 27 description="The BASE version that this project depends on." 28 /> 29 <property name="depend.jars" 30 value="http://base2.thep.lu.se/base/jars/${depend.base-version}" 31 description="The location of the BASE core JARs that this project depends on." 32 /> 28 33 29 34 <!-- set up classpath for compiling --> … … 84 89 <fileset dir="." includes="META-INF/*" /> 85 90 </copy> 86 <replace token="%%plugins.jar%%" value="${jar.name}" file="${build}/server/META-INF/base-plugins.xml" />87 91 <jar 88 92 jarfile="${jar.name}" … … 180 184 /> 181 185 182 <echo>base-plugins.xml</echo>183 186 <replaceregexp 184 file="META-INF/ base-plugins.xml"185 match="<min baseversion>.*</minbaseversion>"186 replace="<min baseversion>${minbaseversion}</minbaseversion>"187 file="META-INF/extensions.xml" 188 match="<min-base-version>.*</min-base-version>" 189 replace="<min-base-version>${depend.base-version}</min-base-version>" 187 190 encoding="UTF-8" 188 flags="g"189 191 /> 190 192 <echo>Don't forget to commit the changes to the subversion repository!</echo> … … 193 195 <target 194 196 name="checkjar" 195 description="Checks that the base-core-3.0.0.jar, base-webclient-3.0.0.jar, base-coreplugins-3.0.0.jar and base-webservices-client-3.0.0.jarexists."197 description="Checks that the required BASE JAR files exists." 196 198 > 197 199 <available classname="net.sf.basedb.util.export.spotdata.AbstractBioAssaySetExporter" … … 203 205 <available classname="net.sf.basedb.info.BioAssaySetInfo" 204 206 classpathref="classpath" property="basewebservice" /> 205 <fail unless="basecore" message="Can't find base-core- 3.0.0.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />206 <fail unless="baseplugins" message="Can't find base-coreplugins- 3.0.0.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />207 <fail unless="baseweb" message="Can't find base-webclient- 3.0.0.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />208 <fail unless="basewebservice" message="Can't find base-webservices-client- 3.0.0.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />209 <echo>Found base-core-3.0.0.jar, base-coreplugins-3.0.0.jar, base-webclient-3.0.0.jar and base-webservices-client-3.0.0.jar.</echo>207 <fail unless="basecore" message="Can't find base-core-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 208 <fail unless="baseplugins" message="Can't find base-coreplugins-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 209 <fail unless="baseweb" message="Can't find base-webclient-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 210 <fail unless="basewebservice" message="Can't find base-webservices-client-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." /> 211 <echo>Found all requried BASE core JAR files.</echo> 210 212 </target> 211 213 … … 251 253 <target 252 254 name="download-lib" 253 description="Download base-core-3. 0.0.jar, base-webclient-3.0.0.jar, base-coreplugins-3.0.0.jar and base-webservices-client-3.0.0.jar"255 description="Download base-core-3.x.jar, base-webclient-3.0.0.jar, base-coreplugins-3.x.jar and base-webservices-client-3.0x.jar" 254 256 > 255 257 <echo> … … 260 262 ------------------------------------------------------- 261 263 </echo> 262 <download-lib file="base-core- 3.0.0.jar" />263 <download-lib file="base-webclient- 3.0.0.jar" />264 <download-lib file="base-coreplugins- 3.0.0.jar" />265 <download-lib file="base-webservices-client- 3.0.0.jar" />264 <download-lib file="base-core-${depend.base-version}.jar" /> 265 <download-lib file="base-webclient-${depend.base-version}.jar" /> 266 <download-lib file="base-coreplugins-${depend.base-version}.jar" /> 267 <download-lib file="base-webservices-client-${depend.base-version}.jar" /> 266 268 </target> 267 269 -
extensions/net.sf.basedb.mev/trunk/resources/launch_mev.jsp
r1181 r1395 61 61 try 62 62 { 63 file = FileStoreUtil.getDataFile(dc, bas, fileType );63 file = FileStoreUtil.getDataFile(dc, bas, fileType, false); 64 64 } 65 65 catch (Throwable t) -
extensions/net.sf.basedb.mev/trunk/resources/mev_jnlp.jsp
r1228 r1395 59 59 { 60 60 BioAssaySet bas = BioAssaySet.getById(dc, bioAssaySetId); 61 File mevFile = FileStoreUtil.getDataFile(dc, bas, fileType );61 File mevFile = FileStoreUtil.getDataFile(dc, bas, fileType, false); 62 62 if (mevFile == null) 63 63 { -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/Mev.java
r1383 r1395 9 9 public class Mev 10 10 { 11 12 /** 13 The current version of this plug-in package. 14 */ 15 public static final String VERSION = "1.8-alfa"; 16 11 17 /** 12 18 The external ID for the file type representing -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/install/Install.java
r1383 r1395 48 48 import net.sf.basedb.core.SessionControl; 49 49 import net.sf.basedb.core.SystemItems; 50 import net.sf.basedb.core.plugin.About;51 import net.sf.basedb.core.plugin.AboutImpl;52 50 import net.sf.basedb.core.plugin.AbstractPlugin; 53 51 import net.sf.basedb.core.plugin.GuiContext; … … 114 112 return false; 115 113 } 114 @Override 116 115 public Plugin.MainType getMainType() 117 116 { 118 117 return Plugin.MainType.OTHER; 119 118 } 119 @Override 120 120 public void run(Request request, Response response, ProgressReporter progress) 121 121 { … … 144 144 ------------------------------------------- 145 145 */ 146 @Override 146 147 public Set<GuiContext> getGuiContexts() 147 148 { 148 149 return guiContexts; 149 150 } 151 @Override 150 152 public String isInContext(GuiContext context, Object item) 151 153 { … … 166 168 } 167 169 170 @Override 168 171 public void configure(GuiContext context, Request request, Response response) 169 172 { … … 196 199 } 197 200 201 @Override 198 202 public RequestInformation getRequestInformation(GuiContext context, String command) 199 203 throws BaseException … … 219 223 220 224 // MIME type 221 MimeType mimeType = MimeType.getNew(dc); 222 mimeType.setExtension("anl"); 223 mimeType.setDescription("A MeV analysis file (*.anl)"); 224 mimeType.setName("application/zip"); 225 mimeType.setAutoCompress(false); 226 mimeType.setFileType(spotDataType); 227 dc.saveItem(mimeType); 228 225 MimeType mimeType = createMimeType(dc, 226 "anl", "application/zip", 227 "A MeV analysis file (*.anl)", 228 false, spotDataType); 229 229 230 //Data file types 230 231 DataFileType mevAnalysisFile = createDataFileType(dc, Mev.ANALYSIS_FILE, "MeV analysis file", … … 358 359 } 359 360 361 private MimeType createMimeType(DbControl dc, String extension, String name, 362 String description, boolean autoCompress, ItemSubtype fileType) 363 { 364 MimeType mimeType = null; 365 try 366 { 367 mimeType = MimeType.getByExtension(dc, extension); 368 } 369 catch (ItemNotFoundException ex) 370 { 371 mimeType = MimeType.getNew(dc); 372 mimeType.setExtension(extension); 373 mimeType.setDescription(description); 374 mimeType.setName(name); 375 mimeType.setAutoCompress(autoCompress); 376 mimeType.setFileType(fileType); 377 dc.saveItem(mimeType); 378 } 379 return mimeType; 380 } 381 360 382 private ItemKey getEveryoneUseKey(DbControl dc) 361 383 { -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/plugin/CghExporterPlugin.java
r1383 r1395 30 30 import net.sf.basedb.core.StringParameterType; 31 31 import net.sf.basedb.core.Type; 32 import net.sf.basedb.core.plugin.About;33 import net.sf.basedb.core.plugin.AboutImpl;34 32 import net.sf.basedb.core.plugin.AbstractExporterPlugin; 35 33 import net.sf.basedb.core.plugin.ExportOutputStream; -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/plugin/TdmsExporterPlugin.java
r1383 r1395 26 26 import net.sf.basedb.core.ProgressReporter; 27 27 import net.sf.basedb.core.RequestInformation; 28 import net.sf.basedb.core.plugin.About;29 import net.sf.basedb.core.plugin.AboutImpl;30 28 import net.sf.basedb.core.plugin.AbstractExporterPlugin; 31 29 import net.sf.basedb.core.plugin.ExportOutputStream; -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/servlet/MevDownload.java
r1227 r1395 57 57 private static final long serialVersionUID = -681581186110420461L; 58 58 59 @Override 59 60 public void doGet(HttpServletRequest request, HttpServletResponse response) 60 61 throws IOException, ServletException … … 120 121 } 121 122 123 @Override 122 124 public void doPost(HttpServletRequest request, HttpServletResponse response) 123 125 throws IOException, ServletException
Note: See TracChangeset
for help on using the changeset viewer.