Also, in ProjectArchives I don't see a SAR option. What do I use?
use project archives and just put .sar as the name instead of .jar
Sounds a bit strange, so let me paraphrase what you said to make sure I understood:
- Use a General project in Eclipse.
- Place the files in the project as I wish to see them in the SAR.
- In Project Archives, choose JAR (even though contents are JARs themselves) and give it a .SAR extension in the name.
Is that correct?
Yes, the jar, ear, war options for Project Archives are just "templates" that you can alter to whatever you want.
They are not written in stone.
I am still stumped. No matter what I try, no files get placed in archive.
I have tried:
- Created as either General and Java projects
- Included all the JARs into the libraries and OrderAndExport.
- From ProjectArchives created a New Archive of type JAR. Set it to exploded, with an extension of .sar. Used a folder in the workspace for the archive (outside of the project).
The folder structure is trivial:
Nothing gets placed in the archive folder, and nothing gets published to server.
Obviously I am missing a critical point that is utterly obvious to someone who's used jBoss Tools for a long time. Folder structure? Project Type? Some special non-default Eclipse setting setting? Secret handshake?
Help please? I'd really like to 'publish' my SAR projects like all other projects. Publishing SARs by copying the files to the server 'by hand' is annoying.
I just tried this in CR2 and it just works:
(ignore the content I put in it, but it shows the principle workings of it)
p.s. if you don't have Automatic build enabled you have to manually trigger the build.