Skip to content

Commit 92fff7e

Browse files
committed
Merge branch 'hotfix-1.27.11'
2 parents ff73950 + b48cbad commit 92fff7e

File tree

52 files changed

+381
-382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+381
-382
lines changed

gemma-core/pom.xml

+26-30
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>gemma</artifactId>
55
<groupId>gemma</groupId>
6-
<version>1.27.10</version>
6+
<version>1.27.11</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>gemma-core</artifactId>
@@ -14,22 +14,7 @@
1414
<plugin>
1515
<groupId>org.apache.maven.plugins</groupId>
1616
<artifactId>maven-antrun-plugin</artifactId>
17-
<version>1.7</version>
18-
<configuration>
19-
<target>
20-
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
21-
<classpath>
22-
<path refid="maven.dependency.classpath"/>
23-
</classpath>
24-
</taskdef>
25-
<mkdir dir="target/schema"/>
26-
<schemaexport quiet="true" text="true" create="true" drop="false" delimiter=";"
27-
output="${project.build.directory}/schema/gemma-ddl.sql"
28-
config="${project.basedir}/src/main/resources/hibernate.cfg.xml">
29-
<fileset dir="src/main/resources" includes="**/*.hbm.xml"/>
30-
</schemaexport>
31-
</target>
32-
</configuration>
17+
<version>3.0.0</version>
3318
<executions>
3419
<execution>
3520
<id>version-file</id>
@@ -46,12 +31,31 @@
4631
</configuration>
4732
</execution>
4833
<execution>
34+
<id>schema-export</id>
4935
<phase>generate-resources</phase>
5036
<goals>
5137
<goal>run</goal>
5238
</goals>
39+
<configuration>
40+
<target>
41+
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"/>
42+
<mkdir dir="${project.build.directory}/schema"/>
43+
<schemaexport quiet="true" text="true" create="true" drop="false" delimiter=";"
44+
output="${project.build.directory}/schema/gemma-ddl.sql"
45+
config="${project.basedir}/src/main/resources/hibernate.cfg.xml">
46+
<fileset dir="${project.basedir}/src/main/resources" includes="**/*.hbm.xml"/>
47+
</schemaexport>
48+
</target>
49+
</configuration>
5350
</execution>
5451
</executions>
52+
<dependencies>
53+
<dependency>
54+
<groupId>org.hibernate</groupId>
55+
<artifactId>hibernate-core</artifactId>
56+
<version>${hibernate.version}</version>
57+
</dependency>
58+
</dependencies>
5559
</plugin>
5660
<plugin>
5761
<groupId>org.apache.maven.plugins</groupId>
@@ -120,7 +124,7 @@
120124
<pluginExecutionFilter>
121125
<groupId>org.apache.maven.plugins</groupId>
122126
<artifactId>maven-antrun-plugin</artifactId>
123-
<versionRange>[1.7,)</versionRange>
127+
<versionRange>[3.0.0,)</versionRange>
124128
<goals>
125129
<goal>run</goal>
126130
</goals>
@@ -150,7 +154,7 @@
150154
<plugin>
151155
<groupId>org.apache.maven.plugins</groupId>
152156
<artifactId>maven-dependency-plugin</artifactId>
153-
<version>3.2.0</version>
157+
<version>3.1.2</version>
154158
<executions>
155159
<execution>
156160
<phase>process-resources</phase>
@@ -167,14 +171,6 @@
167171
<outputDirectory>${project.build.directory}/schema</outputDirectory>
168172
<includes>**/*.sql</includes>
169173
</artifactItem>
170-
<artifactItem>
171-
<groupId>gemma</groupId>
172-
<artifactId>gemma-model</artifactId>
173-
<version>1.10.1</version>
174-
<overWrite>true</overWrite>
175-
<outputDirectory>${project.build.directory}/schema</outputDirectory>
176-
<includes>**/*.sql</includes>
177-
</artifactItem>
178174
</artifactItems>
179175
</configuration>
180176
</execution>
@@ -264,7 +260,7 @@
264260
<version>1.7</version>
265261
</dependency>
266262

267-
<!-- Lucene (version is synced with baseCode -->
263+
<!-- Lucene (version is synced with baseCode) -->
268264
<dependency>
269265
<groupId>org.apache.lucene</groupId>
270266
<artifactId>lucene-core</artifactId>
@@ -276,7 +272,7 @@
276272
<version>${lucene.version}</version>
277273
</dependency>
278274

279-
<!-- Jena -->
275+
<!-- Jena (version is synced with baseCode) -->
280276
<dependency>
281277
<groupId>org.apache.jena</groupId>
282278
<artifactId>jena-core</artifactId>
@@ -375,7 +371,7 @@
375371
<version>1.7.4</version>
376372
</dependency>
377373
<!-- bit array -->
378-
<!-- it can't be updated though because the binary format has changed and we store those in the database -->
374+
<!-- it can't be updated though because the binary format has changed, and we store those in the database -->
379375
<dependency>
380376
<groupId>com.googlecode.javaewah</groupId>
381377
<artifactId>JavaEWAH</artifactId>

gemma-core/src/main/config/log4j.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
log4j.appender.stderr=org.apache.log4j.ConsoleAppender
1111
log4j.appender.stderr.target=System.err
1212
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
13-
log4j.appender.stderr.layout.ConversionPattern=[Gemma %d] %p [%t] %C.%M(%L) | %m%n
13+
log4j.appender.stderr.layout.ConversionPattern=%d %highlight{%p} %style{%pid}{magenta} [%t] %style{%C.%M(%L)}{cyan} | %m%n
1414

1515
# Log to a file. Note that if File is a relative path, the output file goes wherever the application JVM was started from.
1616
# Define gemma.log.dir as a parameter to your JAVA_OPTS and make sure this is passed to java when you start it.
@@ -19,7 +19,7 @@ log4j.appender.file.File=${gemma.log.dir}/gemma.log
1919
log4j.appender.file.MaxFileSize=10000KB
2020
log4j.appender.file.MaxBackupIndex=10
2121
log4j.appender.file.layout=org.apache.log4j.PatternLayout
22-
log4j.appender.file.layout.ConversionPattern=[Gemma - %t (%d)] %p %C.%M(%L) | %m%nLso
22+
log4j.appender.file.layout.ConversionPattern=[Gemma - %t (%d)] %p %C.%M(%L) | %m%n
2323

2424
# Log file for WARNING and higher level errors
2525
log4j.appender.warningFile=org.apache.log4j.DailyRollingFileAppender

gemma-core/src/main/java/ubic/gemma/core/analysis/expression/coexpression/links/AbstractMatrixRowPairAnalysis.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import cern.colt.bitvector.BitMatrix;
2222
import cern.colt.list.DoubleArrayList;
2323
import cern.colt.list.ObjectArrayList;
24-
import org.apache.commons.collections.CollectionUtils;
24+
import org.apache.commons.collections4.CollectionUtils;
2525
import org.apache.commons.lang3.ArrayUtils;
2626
import org.apache.commons.lang3.time.StopWatch;
2727
import org.apache.commons.logging.Log;

gemma-core/src/main/java/ubic/gemma/core/analysis/expression/diff/LinearModelAnalyzer.java

+9-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@
2020

2121
import cern.colt.matrix.DoubleMatrix1D;
2222
import cern.colt.matrix.impl.DenseDoubleMatrix1D;
23-
import org.apache.commons.collections.Transformer;
24-
import org.apache.commons.collections.TransformerUtils;
23+
import org.apache.commons.collections4.Transformer;
24+
import org.apache.commons.collections4.TransformerUtils;
2525
import org.apache.commons.lang3.ArrayUtils;
2626
import org.apache.commons.lang3.StringUtils;
2727
import org.apache.commons.lang3.time.StopWatch;
2828
import org.apache.commons.logging.Log;
2929
import org.apache.commons.logging.LogFactory;
30+
import org.springframework.beans.factory.annotation.Autowired;
31+
import org.springframework.beans.factory.annotation.Qualifier;
3032
import org.springframework.context.annotation.Scope;
33+
import org.springframework.core.task.AsyncTaskExecutor;
3134
import org.springframework.stereotype.Component;
3235
import ubic.basecode.dataStructure.matrix.DenseDoubleMatrix;
3336
import ubic.basecode.dataStructure.matrix.DoubleMatrix;
@@ -140,6 +143,9 @@ private static BioAssayDimension createBADMap( List<BioMaterial> columnsToUse )
140143
return reorderedDim;
141144
}
142145

146+
@Autowired
147+
private AsyncTaskExecutor taskExecutor;
148+
143149
/**
144150
* Determine if any factor should be treated as the intercept term.
145151
*/
@@ -1432,9 +1438,8 @@ private Map<String, LinearModelSummary> runAnalysis( final DoubleMatrix<Composit
14321438
private Future<?> runAnalysisFuture( final DesignMatrix designMatrix, final DoubleMatrix<String, String> data,
14331439
final Map<String, LinearModelSummary> rawResults, final DoubleMatrix1D librarySize,
14341440
final DifferentialExpressionAnalysisConfig config ) {
1435-
ExecutorService service = Executors.newSingleThreadExecutor();
14361441

1437-
Future<?> f = service.submit( new Runnable() {
1442+
Future<?> f = taskExecutor.submit( new Runnable() {
14381443
@Override
14391444
public void run() {
14401445
StopWatch timer = new StopWatch();
@@ -1476,7 +1481,6 @@ public void run() {
14761481
}
14771482
} );
14781483

1479-
service.shutdown();
14801484
return f;
14811485
}
14821486
}

gemma-core/src/main/java/ubic/gemma/core/analysis/service/ArrayDesignAnnotationServiceImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919
package ubic.gemma.core.analysis.service;
2020

21-
import org.apache.commons.collections.Transformer;
22-
import org.apache.commons.collections.iterators.TransformIterator;
21+
import org.apache.commons.collections4.Transformer;
22+
import org.apache.commons.collections4.iterators.TransformIterator;
2323
import org.apache.commons.lang3.StringUtils;
2424
import org.apache.commons.logging.Log;
2525
import org.apache.commons.logging.LogFactory;

gemma-core/src/main/java/ubic/gemma/core/apps/ExperimentalDesignImportCli.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ protected void buildOptions( Options options ) {
5757

5858
Option expOption = Option.builder( "e" ).required().hasArg().argName( "Expression experiment name" )
5959
.desc(
60-
"Expression experiment short name. Most tools recognize comma-delimited values given on the command line, "
61-
+ "and if this option is omitted, the tool will be applied to all expression experiments." )
60+
"Expression experiment short name" )
6261
.longOpt( "experiment" ).build();
6362

6463
options.addOption( expOption );

gemma-core/src/main/java/ubic/gemma/core/apps/NCBIGene2GOAssociationLoaderCLI.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import org.apache.commons.cli.CommandLine;
2222
import org.apache.commons.cli.Option;
2323
import org.apache.commons.cli.Options;
24+
import org.springframework.core.task.AsyncTaskExecutor;
25+
import org.springframework.core.task.TaskExecutor;
2426
import ubic.gemma.core.apps.GemmaCLI.CommandGroup;
2527
import ubic.gemma.core.loader.association.NCBIGene2GOAssociationLoader;
2628
import ubic.gemma.core.loader.association.NCBIGene2GOAssociationParser;
@@ -64,8 +66,9 @@ protected void buildOptions( Options options ) {
6466
@Override
6567
protected void doWork() throws Exception {
6668
TaxonService taxonService = this.getBean( TaxonService.class );
69+
AsyncTaskExecutor taskExecutor = this.getBean( AsyncTaskExecutor.class );
6770

68-
NCBIGene2GOAssociationLoader gene2GOAssLoader = new NCBIGene2GOAssociationLoader();
71+
NCBIGene2GOAssociationLoader gene2GOAssLoader = new NCBIGene2GOAssociationLoader( taskExecutor );
6972

7073
gene2GOAssLoader.setPersisterHelper( this.getPersisterHelper() );
7174

gemma-core/src/main/java/ubic/gemma/core/apps/NcbiGeneLoaderCLI.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import org.apache.commons.cli.Option;
2323
import org.apache.commons.cli.Options;
2424
import org.apache.commons.lang3.StringUtils;
25+
import org.springframework.core.task.AsyncTaskExecutor;
26+
import org.springframework.core.task.TaskExecutor;
2527
import ubic.gemma.core.apps.GemmaCLI.CommandGroup;
2628
import ubic.gemma.core.loader.genome.gene.ncbi.NcbiGeneLoader;
2729
import ubic.gemma.core.util.AbstractCLI;
@@ -98,7 +100,7 @@ protected boolean requireLogin() {
98100

99101
@Override
100102
protected void doWork() throws Exception {
101-
loader = new NcbiGeneLoader();
103+
loader = new NcbiGeneLoader( this.getBean( AsyncTaskExecutor.class ) );
102104
TaxonService taxonService = this.getBean( TaxonService.class );
103105
loader.setTaxonService( taxonService );
104106
loader.setPersisterHelper( this.getPersisterHelper() );

gemma-core/src/main/java/ubic/gemma/core/externalDb/GoldenPathSequenceAnalysis.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package ubic.gemma.core.externalDb;
2020

21-
import org.apache.commons.collections.map.LRUMap;
21+
import org.apache.commons.collections4.map.LRUMap;
2222
import org.apache.commons.lang3.StringUtils;
2323
import org.springframework.dao.DataAccessException;
2424
import org.springframework.jdbc.core.ResultSetExtractor;

0 commit comments

Comments
 (0)