Folks,
Wondering what "best practices" are for packaging form of a Java SDK...
I was thinking about including a jar file and javadoc yielding something
approximately like this:
my-sdk/
|-- my_sdk.tar
|-- readme.txt
|-- license.txt
`-- apidocs/
I could throw things like source (it's open source) and xref'd source if
that's helpful, but it makes the download bigger. Or I could build
different kinds of distros - e.g., one being the above and another being
more full src and build oriented.
What do people think is right or best here?
Chris
Ranganath Kini - 09 Feb 2006 07:01 GMT
In my opinion the best structure of packaging your application is:
your-app/
|---------- bin/ // contains launcher such as a .BAT or
shell script
|---------- lib/ // contains all JAR libraries related to
your application
|---------- myApp.jar // the JAR containing the
main class of ur app
|---------- docs/ // the JavaDocs pages containing
documentation
|---------- src/ // the source code of ur app if ur open
sourcing ur app
|---------- license.txt
|---------- readme.txt
Hope it helps!
Chris Uppal - 09 Feb 2006 12:33 GMT
> Wondering what "best practices" are for packaging form of a Java SDK...
> I was thinking about including a jar file and javadoc yielding something
> approximately like this:
I suggest following the pattern of a Sun JDK as closely as makes sense for your
implementation. Even going as far as emulating the JDK/JRE distinction. The
point is that everyone (who knows how to navigate a JDK at all) will be
familiar
with the Sun layout, so they (and any tools they use) will adapt most easily to
your stuff if it follows the established pattern.
(Which, btw, would imply the use of zip files in preference to tar or tgz
archives -- that may be going too far for you, though ;-)
-- chris