Changeset 3098
- Timestamp:
- Feb 5, 2007, 11:52:51 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r3029 r3098 670 670 <target 671 671 name="web.init" 672 depends="core.init "672 depends="core.init,coreplugins.init" 673 673 > 674 674 <property name="web.src" location="${src}/clients/web" … … 681 681 <path refid="core.classpath"/> 682 682 <pathelement location="${core.build}"/> 683 <pathelement location="${coreplugins.build}" /> 683 684 <fileset dir="${lib}/servlet"> 684 685 <include name="**/*.jar"/> -
trunk/config/dist/web.xml
r2994 r3098 127 127 </servlet-mapping> 128 128 129 129 <!-- The MevExport servlet used to download bioassay data to Mev --> 130 <servlet> 131 <servlet-name>mevexport</servlet-name> 132 <servlet-class> 133 net.sf.basedb.clients.web.servlet.MevExport 134 </servlet-class> 135 </servlet> 136 <servlet-mapping> 137 <servlet-name>mevexport</servlet-name> 138 <url-pattern>/plugins/org/tigr/microarray/mev/export</url-pattern> 139 </servlet-mapping> 140 130 141 <!-- The CompileAll servlet used to compile all JSP pages --> 131 142 <!-- EXPERIMENTAL!! --> -
trunk/src/plugins/core/net/sf/basedb/plugins/BioAssaySetExporter.java
r3068 r3098 78 78 79 79 import java.io.IOException; 80 import java.io.OutputStream; 80 81 import java.io.PrintWriter; 81 82 import java.sql.SQLException; … … 414 415 415 416 416 p rivate void exportMeV(BioAssaySet bioassayset, File file,417 public void exportMeV(BioAssaySet bioassayset, OutputStream to, 417 418 ProgressReporter progress) 418 419 throws IOException, SQLException 419 420 { 420 421 DbControl dc=bioassayset.getDbControl(); 421 PrintWriter out = new PrintWriter( file.getUploadStream(false));422 PrintWriter out = new PrintWriter(to); 422 423 423 424 // comment header … … 466 467 } 467 468 468 progress.display(0, "Exporting ... performing database query");469 if (progress != null) progress.display(0, "Exporting ... performing database query"); 469 470 // Reporter annotations and expression levels 470 471 int nofchannels=bioassayset.getRawDataType().getChannels(); … … 511 512 while (spotData.hasNext()) 512 513 { 513 if ( nof_processed_reporters%progress_report_interval == 0)514 if (progress != null && (nof_processed_reporters%progress_report_interval == 0)) 514 515 { 515 516 progress.display(100 * nof_processed_reporters / nof_reporters, … … 567 568 } 568 569 out.write("\n"); 569 570 out.close(); 570 out.flush(); 571 571 } 572 572 … … 907 907 // Add other export formats here 908 908 String format = (String) job.getValue("fileformat"); 909 if (format.equals(FORMAT_MEV)) exportMeV(bioassayset,file,progress); 909 if (format.equals(FORMAT_MEV)) 910 { 911 OutputStream out = file.getUploadStream(false); 912 exportMeV(bioassayset, out, progress); 913 out.close(); 914 } 910 915 else if (format.equals(FORMAT_BASEFILE)) 911 916 {
Note: See TracChangeset
for help on using the changeset viewer.