Skip to content

Commit 15bedc8

Browse files
Add target to build jar with no dependency jars
The ant “jar” target in build.xml here now builds a css-validator.jar file that includes all the dependency jars from the lib/ subdirectory. But in some cases it’s also still useful to have a css-validator.jar without the dependencies; so this change adds an additional “jar-without-dependencies” target for doing that.
1 parent 5dddcc8 commit 15bedc8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@
128128
</jar>
129129
</target>
130130

131+
<target name="jar-without-dependencies" depends="build" description="Creates the lib archive without dependency jars">
132+
<delete file="${jar.file}"/>
133+
<jar jarfile="${jar.file}" basedir="build" excludes="org/**/*.java">
134+
<include name="org/**"/>
135+
<manifest>
136+
<attribute name="Main-Class" value="org.w3c.css.css.CssValidator"/>
137+
</manifest>
138+
</jar>
139+
</target>
140+
131141
<target name="war" depends="build" description="Creates the webapp module">
132142
<delete file="${war.file}"/>
133143
<war warfile="${war.file}" webxml="web.xml" basedir="." includes="*html*,favicon.ico,images/**,style/**,scripts/**,tabtastic/**" excludes="html,css-validator.*">

0 commit comments

Comments
 (0)