cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy resources with bar file

matutano6
Champ in-the-making
Champ in-the-making
Hi,
I would like to deploy some resources which are not Java classes so that they can be retrieved with RepositoryService.getResourceAsStream(deploymentId, resourceName) as mentioned in the User Guide. I made some tests with the Eclipse Designer and I found that:

- Only Java classes in src/man/java are packed. If I put some other file types (e.g. jsp), they a not packed using "Create deployment artifacts" nor they are "compiled" ("sent to" actually) into the target directory with the Java classes.

- Trying with Java classes, the files are compiled and packed, but in a different file than the diagrams resulting in a bar file and a jar file. I deployed them using Activiti Explorer (file by file), but as expected, the deployment ID of the process (which was deployed with the bar file) does not match the deployment ID of the jar (which contains the resources).

Could you please give me some light here? How can I make deployment artifacts with arbitrary file types (by hand, if necessary) and how to deploy them together with the Process Definition?

Thanks in advance!
M.
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
No, i don't think adding random files to the bar from designer is supported

matutano6
Champ in-the-making
Champ in-the-making
Ok, thanks for your answer. I'll be writing an ant build.xml to do the job.

Thanks,
M.