[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Ant question


Hi all,

Im trying to package images to a jar file. Do I need to amend my ant build file?

Thanks
0
CtrlCtrlV
Asked:
CtrlCtrlV
  • 4
  • 4
1 Solution
 
CEHJCommented:
You simply need to include them in a fileset. See FileSet in docs
0
 
CtrlCtrlVAuthor Commented:

So the following "should" be correct:

<fileset dir="${project.home}/com/newpackage/icons" casesensitive="yes">
  <include name="**/*.jpg"/>
</fileset>
0
 
CEHJCommented:
Yes
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CtrlCtrlVAuthor Commented:

Its not working although.
The icons dir get created, it always did before I added the fileset tag.

Am I missing something?
0
 
CEHJCommented:
Maybe there are no jpgs under that directory. If not, you should probably copy them from elsewhere
0
 
CtrlCtrlVAuthor Commented:

The jpgs are there. Does it matter where the <fileset> is inserted in build.xml, as long of course that its after a clean is performed?
0
 
CtrlCtrlVAuthor Commented:

Got it, thanks for the help

;)
0
 
CEHJCommented:
:-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now