-
1. Re: Correct Eclipse project type for SAR?
bmelloni Feb 6, 2009 12:55 PM (in response to bmelloni)Also, in ProjectArchives I don't see a SAR option. What do I use?
-
2. Re: Correct Eclipse project type for SAR?
maxandersen Feb 7, 2009 11:51 AM (in response to bmelloni)use project archives and just put .sar as the name instead of .jar
-
3. Re: Correct Eclipse project type for SAR?
bmelloni Feb 9, 2009 3:19 PM (in response to bmelloni)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? -
4. Re: Correct Eclipse project type for SAR?
maxandersen Feb 9, 2009 3:40 PM (in response to bmelloni)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. -
5. Re: Correct Eclipse project type for SAR?
bmelloni Feb 26, 2009 11:32 AM (in response to bmelloni)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:
/<jars here>
/META-INF/jboss-service.xml
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. -
6. Re: Correct Eclipse project type for SAR?
maxandersen Mar 2, 2009 3:27 AM (in response to bmelloni)I just tried this in CR2 and it just works:
http://screencast.com/t/Mvscezpv
(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.