updated jar target to include a custom manifest file with a Main-class attribute

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@734 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-08-21 13:05:19 +00:00
parent 635b2dd369
commit d2e273ccea
3 changed files with 6 additions and 3 deletions

4
pmd/etc/MANIFEST.MF Normal file
View File

@ -0,0 +1,4 @@
Manifest-Version: 1.0
Created-By: Ant 1.4.1
Main-class: net.sourceforge.pmd.PMD

View File

@ -45,7 +45,7 @@
<include name="*.properties"/>
</fileset>
</copy>
<jar jarfile="${lib}\pmd-${version}.jar" basedir="${build}" excludes="test/**/*.class"/>
<jar jarfile="${lib}\pmd-${version}.jar" basedir="${build}" manifest="etc/MANIFEST.MF" excludes="test/**/*.class"/>
</target>
<target name="pmd">

View File

@ -1,6 +1,5 @@
@echo off
set CLASSPATH=../lib/pmd-0.9.jar
set FILE=%1%
set FORMAT=%2%
set RULESETFILE=%3%
java net.sourceforge.pmd.PMD %FILE% %FORMAT% %RULESETFILE%
java -jar ../lib/pmd-0.9.jar %FILE% %FORMAT% %RULESETFILE%