I am reworking a build, and notice that the ear file contains a Service archive file (sar). I'd like to build the sar file in Ant. I suspect I could probably use the ear
or zip
task to do this, and simply name the file as *.sar
. However, I want to be sure that this will work.
What task would I use in Ant to create a SAR file?
It seems you should use the standard JAR task in ANT. According to the JBoss documentation, SAR files contain an extra file:
The following "hello world" example has a sample project attached: