I have my project setup with the following directories
The .class files obviously go in the jar file. The images directory contains images used by the GUI, again, into the jar file. The data directory contains information used by the methods in the java app, again into the jar file. The scripts directory contains files not used by the Java app directly. I start another program and then pass a command to that program ('source scripts/myscript') which defines a function in that program, I can then send commands to run the function I created.
I originally was not using a jar file, so I could just source the scripts files. It seems I have two options when using a jar file:
1. Put all the files in the jar file, then when I run, copy out the scripts files to a tmp directory and source them from there
2. Leave the scripts directory out of the jar file and define an environment variable so that I can find them.
I'm leaning toward (1), the scripts files only total about 40K.
Would anyone have comments about the advantages and disadvantages of one method over the other? Or a better approach in general?
Thanks.
The .class files obviously go in the jar file. The images directory contains images used by the GUI, again, into the jar file. The data directory contains information used by the methods in the java app, again into the jar file. The scripts directory contains files not used by the Java app directly. I start another program and then pass a command to that program ('source scripts/myscript') which defines a function in that program, I can then send commands to run the function I created.
I originally was not using a jar file, so I could just source the scripts files. It seems I have two options when using a jar file:
1. Put all the files in the jar file, then when I run, copy out the scripts files to a tmp directory and source them from there
2. Leave the scripts directory out of the jar file and define an environment variable so that I can find them.
I'm leaning toward (1), the scripts files only total about 40K.
Would anyone have comments about the advantages and disadvantages of one method over the other? Or a better approach in general?
Thanks.