Hi All,
Hope this is the right forum for this question.
I have currently developed a
java application which accepts xml as
string & does xml to xml transformation using xsl
After the input xml is transformed to the new xml we check if the new xml adheres to a DTD.
In this java code i also uses log4j.
I have to create a jar file which has all the above mentioned artifacts.
1) All custom java code classes
2) log4j.jar, jaxp related jar files
3) log4j.properties
4) the XSL file which is used for transformation
5) The DTD to which the new xml confirms
6) a log file to which all logs are written.
I have created these above indivdual pieces & they work fine individually. But now i want to bundle all the above mentioned artifacts in a jar & place it into a content management system from where my classes will be invoked.
I dont have much experience with packaging of java related artifacts.
I dont have any control over the system where this jar will be used so i have to bundle everything in the jar & use references to the xsl, dtd, log4j.properties files in such a way that it gets picked from the same jar i bundle all the artifacts.
So can someone give me some hints as to how can i pick the references to the xsl , dtd & log4j.properties in my java code from the jar file & not from the file system.
Currently for
testing i use the file system reference & everything works fine.
Do post your suggestions for the same
Regards