Reputation: 103
I am using ant to create a jar for a project.
here is the target
<jar destfile="artifacts/my-jar-file.jar" basedir=".">
<include name="bin/**" />
</jar>
The jar is getting created but it creates the packages as :
bin.com.aryasindhu.testjar. ...
But I don't need the bin appended before the package.
Please suggest me what I need to change in the jar creation target.
Upvotes: 1
Views: 46
Reputation: 103
I just got my answer.
Here is the change in the target that I am using now :
<jar destfile="artifacts/my-jar-file.jar">
<fileset dir="bin" includes="**/*.class" />
</jar>
Upvotes: 0
Reputation:
try this:
<jar destfile="artifacts/my-jar-file.jar" basedir="./bin">
<include name="*/**" />
</jar>
Upvotes: 2