From 16d56903b1d27abfe2fec2fe0b3213f3afdc55bd Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Wed, 3 Jul 2002 23:49:42 +0000 Subject: [PATCH] Set the attribute Main-Class in the JAR file to allow checkstyle to be run with the -jar option. Also no longer distribute generated source files. --- build.xml | 13 ++++++++----- config/manifest.mf | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 config/manifest.mf diff --git a/build.xml b/build.xml index e82b922db..973456442 100644 --- a/build.xml +++ b/build.xml @@ -323,7 +323,8 @@ + basedir="target/checkstyle" + manifest="config/manifest.mf" /> @@ -336,7 +337,8 @@ dest="${dist.dir}/checkstyle-${version}/tmp" /> + basedir="${dist.dir}/checkstyle-${version}/tmp" + manifest="config/manifest.mf" /> @@ -371,17 +373,18 @@ + + + - - - + diff --git a/config/manifest.mf b/config/manifest.mf new file mode 100644 index 000000000..b7c58b91e --- /dev/null +++ b/config/manifest.mf @@ -0,0 +1 @@ +Main-Class: com.puppycrawl.tools.checkstyle.Main