Convert the somatic coverage tool to output from the packaging tool rather than from the dist target.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1050 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2009-06-18 21:29:30 +00:00
parent 1bca144119
commit af7a759ba4
4 changed files with 13 additions and 41 deletions

View File

@ -110,30 +110,6 @@
</manifest>
</jar>
<jar jarfile="dist/SomaticCoverage.jar" whenmanifestonly="skip">
<fileset dir="build">
<include name="**/somaticcoverage/*.class"/>
<include name="**/walkers/SomaticCoverageWalker.class"/>
</fileset>
<fileset dir="java">
<include name="**/somaticcoverage/*.xml"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="org.broadinstitute.sting.playground.somaticcoverage.SomaticCoverageTool" />
</manifest>
</jar>
<jar jarfile="dist/AnnotateSecondaryBase.jar" whenmanifestonly="skip">
<fileset dir="build">
<include name="**/secondarybase/**/*.class" />
</fileset>
<manifest>
<attribute name="Main-Class" value="org.broadinstitute.sting.secondarybase.AnnotateSecondaryBase" />
</manifest>
</jar>
<jar jarfile="dist/Playground.jar" whenmanifestonly="skip">
<fileset dir="build">
<include name="**/*.class"/>
@ -165,23 +141,11 @@
</manifest>
</jar>
<jar jarfile="dist/AnnotateSecondaryBase.jar" update="true" whenmanifestonly="skip">
<manifest>
<attribute name="Class-Path" value="${jar.classpath}" />
</manifest>
</jar>
<jar jarfile="dist/Playground.jar" update="true" whenmanifestonly="skip">
<manifest>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
<jar jarfile="dist/SomaticCoverage.jar" update="true" whenmanifestonly="skip">
<manifest>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
</target>
<target name="core" description="force a build of the Sting core code">

View File

@ -70,11 +70,7 @@ public class SomaticCoverageTool extends CommandLineExecutable {
/** override any arguments we see fit. */
protected void overrideArguments() {
try {
this.argCollection = GATKArgumentCollection.unmarshal(this.getClass().getResource("/src/org/broadinstitute/sting/playground/somaticcoverage/SomaticCoverage.xml").openStream());
} catch (IOException e) {
throw new RuntimeException(e);
}
this.argCollection = GATKArgumentCollection.unmarshal(getClass().getClassLoader().getResourceAsStream("SomaticCoverage.xml"));
this.argCollection.samFiles = samFiles;
}
}

View File

@ -26,6 +26,9 @@
<root classname="{current()}" />
</xsl:for-each>
</classfileset>
<xsl:for-each select="dependencies/file">
<fileset file="{current()}" />
</xsl:for-each>
<manifest>
<attribute name="Main-Class" value="{main-class}"/>
</manifest>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<package>
<name>SomaticCoverage</name>
<main-class>org.broadinstitute.sting.playground.somaticcoverage.SomaticCoverageTool</main-class>
<dependencies>
<class>org.broadinstitute.sting.playground.gatk.walkers.SomaticCoverageWalker</class>
<file>java/src/org/broadinstitute/sting/playground/somaticcoverage/SomaticCoverage.xml</file>
</dependencies>
</package>