Skip to content
Snippets Groups Projects
Commit 081e007d authored by felmer's avatar felmer
Browse files

LMS-1250 build creates a distribution (zip file) which contains the plugin....

LMS-1250 build creates a distribution (zip file) which contains the plugin. BuildAndEnvironmentInfo added to show build version by running java -jar plugin.jar

SVN: 13742
parent 91b2c254
No related merge requests found
<project name="yeastx" default="dist" basedir="..">
<project name="rtd_yeastx" default="dist" basedir="..">
<import file="../../build_resources/ant/build-common.xml" />
<project-classpath name="ecp" classes="${classes}" />
......@@ -14,7 +14,13 @@
<target name="compile" depends="build-common.compile, clean" />
<target name="dist" depends="jar" />
<target name="dist" depends="jar" >
<move file="${jar.file}" todir="${dist}/lib" />
<property name="dist.file"
value="${dist}/datastore_server_plugin-yeastx-${version.number}-r${revision.number}.zip" />
<zip basedir="${dist}" destfile="${dist.file}" excludes="*.zip *.jar"/>
<delete dir="${dist}/lib"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}" />
......@@ -31,7 +37,17 @@
<fileset dir="source/java">
<include name="**/*.xsd" />
</fileset>
<manifest>
<attribute name="Main-Class" value="ch.systemsx.cisd.yeastx.BuildAndEnvironmentInfo" />
<attribute name="Version" value="${version.number}" />
<attribute name="Build-Number"
value="${version.number} (r${revision.number},${clean.flag})" />
</manifest>
</recursive-jar>
<jar update="true" destfile="${jar.file}">
<zipfileset src="${lib}/cisd-base/cisd-base.jar"
includes="ch/systemsx/cisd/base/utilities/AbstractBuildAndEnvironmentInfo.class" />
</jar>
</target>
<!--
......
/*
* Copyright 2009 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ch.systemsx.cisd.yeastx;
import ch.systemsx.cisd.base.utilities.AbstractBuildAndEnvironmentInfo;
/**
* The build and environment information for YeastX.
*
* @author Franz-Josef Elmer
*/
public class BuildAndEnvironmentInfo extends AbstractBuildAndEnvironmentInfo
{
private final static String BASE = "rtd_yeastx";
public final static BuildAndEnvironmentInfo INSTANCE = new BuildAndEnvironmentInfo();
private BuildAndEnvironmentInfo()
{
super(BASE);
}
/**
* Shows build and environment information on the console.
*/
public static void main(String[] args)
{
System.out.println(INSTANCE);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment