Commit 2ac8b11f authored by SAPONE Alann's avatar SAPONE Alann

Preset web browser - Splashscreen - bug correction

parent c7164cb9
<?xml version="1.0"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:pom="http://maven.apache.org/POM/4.0.0">
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-Calculator</artifactId>
<name>ETC-Calculator</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<show>private</show>
<taglets>
<taglet>
<tagletClass>latexlet.InlineLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
<taglet>
<tagletClass>latexlet.BlockLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
<taglet>
<tagletClass>latexlet.InlineBlockLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
</taglets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Configuration</artifactId>
<version>0.5.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.cesam</groupId>
<artifactId>CeSAMUtilsJ</artifactId>
<version>0.1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math</artifactId>
<version>2.2</version>
</dependency>
<!-- Testing dependencies -->
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<groupId>org.cnrs.lam.dis</groupId>
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns:pom="http://maven.apache.org/POM/4.0.0">
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-Calculator</artifactId>
<name>ETC-Calculator</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<show>private</show>
<taglets>
<taglet>
<tagletClass>latexlet.InlineLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
<taglet>
<tagletClass>latexlet.BlockLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
<taglet>
<tagletClass>latexlet.InlineBlockLaTeXlet</tagletClass>
<tagletArtifact>
<groupId>latexlet</groupId>
<artifactId>latexlet</artifactId>
<version>1.0</version>
</tagletArtifact>
</taglet>
</taglets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Configuration</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.cesam</groupId>
<artifactId>CeSAMUtilsJ</artifactId>
<version>0.1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math</artifactId>
<version>2.2</version>
</dependency>
<!-- Testing dependencies -->
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<groupId>org.cnrs.lam.dis</groupId>
</project>
......@@ -5,7 +5,7 @@
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Configuration</artifactId>
......
......@@ -3,7 +3,7 @@
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-Controller</artifactId>
......@@ -22,45 +22,55 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Plugins-Implementations</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Configuration</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Persistence</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Calculator</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataImportExport</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-UI</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Plugins</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.astrogrid</groupId>
......@@ -71,35 +81,35 @@
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Persistence</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Calculator</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-UI</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataImportExport</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
......
......@@ -56,6 +56,7 @@ import org.cnrs.lam.dis.etc.dataimportexport.WrongFormatException;
import org.cnrs.lam.dis.etc.datamodel.Dataset;
import org.cnrs.lam.dis.etc.datamodel.DatasetInfo;
import org.cnrs.lam.dis.etc.persistence.DatasetManager;
import org.javatuples.Pair;
import org.json.JSONArray;
import org.json.JSONObject;
......@@ -120,8 +121,8 @@ class DbInstaller {
logger.info("Default database tables created successfully");
}
static void importDatasetList(URL url, DataImporter dataImporter, DatasetManager datasetManager) throws IOException {
InputStream inStream;
static Pair<Scanner, Boolean> getDatasetList(URL url, DataImporter dataImporter, DatasetManager datasetManager) throws IOException {
InputStream inStream;
boolean isDefault;
if (url == null) {
logger.info("Initializing default database with default datasets...");
......@@ -133,7 +134,14 @@ class DbInstaller {
inStream = url.openStream();
isDefault = false;
}
Scanner in = new Scanner(inStream);
Pair<Scanner, Boolean> in = new Pair<Scanner, Boolean>(new Scanner(inStream), isDefault);
return in;
}
static void importDatasetList(URL url, DataImporter dataImporter, DatasetManager datasetManager) throws IOException {
Pair<Scanner, Boolean> inPair = getDatasetList(url, dataImporter, datasetManager);
Scanner in = inPair.getValue0();
boolean isDefault = inPair.getValue1();
in.useDelimiter("}");
while (in.hasNext()) {
String datasetInfo = in.next();
......@@ -223,7 +231,7 @@ class DbInstaller {
logger.info("Default database tables created successfully");
}
private static void importDataset(String datasetInfo, DataImporter dataImporter, DatasetManager datasetManager, boolean isDefault) {
public static void importDataset(String datasetInfo, DataImporter dataImporter, DatasetManager datasetManager, boolean isDefault) {
logger.info("Importing default dataset...");
Map<String, String> datasetInfoMap = new HashMap<String, String>();
for (String pair : datasetInfo.split("\n")) {
......
......@@ -50,11 +50,16 @@ import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
import javax.swing.JOptionPane;
import org.apache.log4j.Logger;
import org.cnrs.lam.dis.etc.calculator.util.Units;
import org.cnrs.lam.dis.etc.dataimportexport.DataImportExportFactory;
import org.cnrs.lam.dis.etc.dataimportexport.DataImporter;
import org.cnrs.lam.dis.etc.datamodel.FilterBand;
import org.cnrs.lam.dis.etc.persistence.DatasetManager;
import org.cnrs.lam.dis.etc.persistence.PersistenceFactory;
import org.javatuples.Pair;
/**
......@@ -63,7 +68,7 @@ import org.javatuples.Pair;
*/
final class DbUpdater {
private static final int DB_VERSION = 29;
private static final int DB_VERSION = 30;
private static Logger logger = Logger.getLogger(DbUpdater.class);
private DbUpdater() {
......@@ -380,6 +385,29 @@ final class DbUpdater {
statement.executeUpdate("ALTER TABLE SITE ADD ATMOSPHERIC_TRANSMISSION_TYPE VARCHAR(255) NOT NULL DEFAULT 'ABSORPTION_EXTINCTION'");
}
// Adds dataset for zodiacal lights
private static void updateFromVersion29To30(Statement statement) throws SQLException {
DataImporter dataImporter = DataImportExportFactory.getDataImporter();
DatasetManager datasetManager = PersistenceFactory.getDatasetManager();
try {
Pair<Scanner, Boolean> inPair = DbInstaller.getDatasetList(null, dataImporter, datasetManager);
Scanner in = inPair.getValue0();
boolean isDefault = inPair.getValue1();
in.useDelimiter("}");
while (in.hasNext()) {
String datasetInfo = in.next();
datasetInfo = datasetInfo.substring(datasetInfo.indexOf('{')+1).trim();
if (datasetInfo.contains("name=High Ecliptic Zodiacal Light") || datasetInfo.contains("name=Low Ecliptic Zodiacal Light")) {
DbInstaller.importDataset(datasetInfo, dataImporter, datasetManager, isDefault);
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
static void updateDatabase() {
Connection connection = null;
try {
......
......@@ -69,6 +69,7 @@ import org.cnrs.lam.dis.etc.ui.SiteListener;
import org.cnrs.lam.dis.etc.ui.SourceListener;
import org.cnrs.lam.dis.etc.ui.UIFactory;
import org.cnrs.lam.dis.etc.ui.UIManager;
import org.cnrs.lam.dis.etc.ui.swing.SplashScreen;
/**
*
......@@ -82,6 +83,8 @@ public class ETC42 {
// Initialize the logging
initializeLogger();
SplashScreen.getInstance().setProgression("Initialization");
// Set the directory where the database is stored
System.setProperty("derby.system.home", ConfigFactory.getConfig().getEtcHome());
......@@ -106,35 +109,68 @@ public class ETC42 {
DatasetManager datasetManager = PersistenceFactory.getDatasetManager();
SessionManager sessionManager = PersistenceFactory.getSessionManager();
SplashScreen.getInstance().setProgression("Loading messenger");
Messenger messenger = UIFactory.getMessenger();
SplashScreen.getInstance().setProgression("Loading plugin manager");
PluginManager pluginManager = PluginFactory.getPluginManager();
SplashScreen.getInstance().setProgression("Loading info provider");
InfoProvider infoProvider = new InfoProviderImpl(datasetManager, sessionManager, messenger, pluginManager);
SplashScreen.getInstance().setProgression("Loading user interface");
UIManager uiManager = UIFactory.getUIManager(infoProvider);
SplashScreen.getInstance().setProgression("Loading calculator");
Calculator calculator = CalculatorFactory.getCalculator();
Validator validator = CalculatorFactory.getValidator();
SplashScreen.getInstance().setProgression("Loading dataset provider");
DatasetProvider datasetProvider = new DatasetProviderImpl(datasetManager);
SplashScreen.getInstance().setProgression("Loading plugin comunicator");
PluginCommunicator pluginCommunicator = new PluginCommunicatorImpl(datasetProvider, infoProvider, datasetManager, uiManager, calculator);
pluginManager.setCommunicator(pluginCommunicator);
SplashScreen.getInstance().setProgression("Loading location component");
pluginManager.setLocationComponent(UIFactory.getLocationComponent());
SplashScreen.getInstance().setProgression("Loading buisness listener");
BuisnessListener buisnessListener = new BuisnessListenerImpl(validator, calculator, messenger, uiManager, datasetProvider, pluginManager);
uiManager.setBuisnessListener(buisnessListener);
SplashScreen.getInstance().setProgression("Loading data importer/exporter");
DataExporter dataExporter = DataImportExportFactory.getDataExporter();
DataImporter dataImporter = DataImportExportFactory.getDataImporter();
SplashScreen.getInstance().setProgression("Loading instrument listener");
InstrumentListener instrumentListener = new InstrumentListenerImpl(sessionManager, datasetManager, messenger, uiManager, dataExporter, dataImporter, datasetProvider);
uiManager.setInstrumentListener(instrumentListener);
SplashScreen.getInstance().setProgression("Loading site listener");
SiteListener siteListener = new SiteListenerImpl(sessionManager, datasetManager, messenger, uiManager, dataExporter, dataImporter, datasetProvider);
uiManager.setSiteListener(siteListener);
SplashScreen.getInstance().setProgression("Loading source listener");
SourceListener sourceListener = new SourceListenerImpl(sessionManager, datasetManager, messenger, uiManager, dataExporter, dataImporter, datasetProvider);
uiManager.setSourceListener(sourceListener);
SplashScreen.getInstance().setProgression("Loading observation parameters listener");
ObsParamListener obsParamListener = new ObsParamListenerImpl(sessionManager, datasetManager, messenger, uiManager, dataExporter, dataImporter, datasetProvider);
uiManager.setObsParamListener(obsParamListener);
SplashScreen.getInstance().setProgression("Loading dataset listener");
DatasetListener datasetListener = new DatasetListenerImpl(datasetManager, messenger, uiManager, dataImporter, dataExporter, datasetProvider);
uiManager.setDatasetListener(datasetListener);
SplashScreen.getInstance().setProgression("Loading SAMP controller");
SampController sampController = DataImportExportFactory.getSampController();
SampImportListener sampImportListener = new SampImportListener(messenger, datasetManager, uiManager);
sampController.setSampListener(sampImportListener);
SampUiListener sampUiListener = new SampUiListener(sampController, messenger);
uiManager.setSampListener(sampUiListener);
SplashScreen.getInstance().setProgression("Loading content");
Session session = new SessionImpl();
if (Installer.isNewDatabase()) {
try {
......@@ -157,6 +193,7 @@ public class ETC42 {
}
}
SplashScreen.getInstance().setProgression("Loading session");
try {
if (sessionManager.getAvailableInstrumentList().contains(new ComponentInfo(System.getProperty("etc.instrument"), null)))
session.setInstrument(sessionManager.loadInstrument(new ComponentInfo(System.getProperty("etc.instrument"), null)));
......@@ -186,6 +223,8 @@ public class ETC42 {
// importing components
if (Installer.isNewDatabase() && System.getProperty("etc.fixtures") == null)
uiManager.handleFirstInstallation();
SplashScreen.getInstance().setProgression("Loading done !");
}
/**
......
......@@ -38,6 +38,7 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import org.apache.log4j.Logger;
import org.cnrs.lam.dis.etc.ui.swing.SplashScreen;
/**
*/
......@@ -46,7 +47,12 @@ public class Main {
private static final Logger logger = Logger.getLogger(ETC42.class);
private static final long MAX_HEAP_REQUIRED = 1400000000L;
public static void main(String[] args) {
SplashScreen.getInstance().setVisible(true);
SplashScreen.getInstance().setProgression("Initialization");
// First we initialize the logger configuration
ETC42.initializeLogger();
logger.info("Starting ETC-42...");
......@@ -68,6 +74,7 @@ public class Main {
+ Runtime.getRuntime().maxMemory() + "). Trying to relaunch with more memory.");
launchInNewProcess(args);
}
SplashScreen.getInstance().setVisible(false);
}
private static void launchInNewProcess(String[] args) {
......
......@@ -77,4 +77,24 @@
xUnit=Å
yUnit=erg/cm^2/s/Å/arcsec^2
dataType=FUNCTION
}
{
file=HighEclipticZodiacalLight.dat
type=ZODIACAL
name=High Ecliptic Zodiacal Light
description=
xUnit=Å
yUnit=erg/cm^2/s/Å/arcsec^2
dataType=FUNCTION
}
{
file=LowEclipticZodiacalLight.dat
type=ZODIACAL
name=Low Ecliptic Zodiacal Light
description=
xUnit=Å
yUnit=erg/cm^2/s/Å/arcsec^2
dataType=FUNCTION
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-DataImportExport</artifactId>
......@@ -57,12 +57,12 @@
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-Configuration</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
......@@ -108,7 +108,7 @@
<dependency>
<groupId>org.cnrs.lam.dis</groupId>
<artifactId>ETC-DataModel</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
......
......@@ -39,6 +39,8 @@ import java.io.FileReader;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
import org.apache.xmlbeans.XmlException;
import org.cnrs.lam.dis.etc.dataimportexport.xml.InstrumentDocument;
import org.cnrs.lam.dis.etc.dataimportexport.xml.ObservingParametersDocument;
import org.cnrs.lam.dis.etc.dataimportexport.xml.SiteDocument;
......@@ -255,11 +257,14 @@ public class DataImporterImpl implements DataImporter {
public InstrumentWithDatasets importInstrumentFromDataFile(File file, ComponentInfo info) throws IOException, WrongFormatException {
InstrumentDocument instrumentDoc = null;
try {
instrumentDoc = InstrumentDocument.Factory.parse(file);
try {
instrumentDoc = InstrumentDocument.Factory.parse(file);
} catch (XmlException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (IOException ioEx) {
throw ioEx;
} catch (Throwable ex) {
throw new WrongFormatException(ex);
}
return new InstrumentWithDatasetsImpl(instrumentDoc.getInstrument(), info);
}
......
......@@ -3,7 +3,7 @@
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-DataModel</artifactId>
......
......@@ -90,7 +90,7 @@ public final class ComponentInfo {
@Override
public int hashCode() {
int hash = 3;
hash = 29 * hash + (this.name != null ? this.name.hashCode() : 0);
hash = 30 * hash + (this.name != null ? this.name.hashCode() : 0);
return hash;
}
}
......@@ -3,7 +3,7 @@
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-Documentation</artifactId>
......
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ETC</artifactId>
<groupId>org.cnrs.lam.dis</groupId>
<version>0.5.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ETC-Jar</artifactId>
<name>ETC-Jar</name>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.cnrs.lam.dis.etc.controller.Main</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>