I posted a similar question to this a while back, but I was going about it completely the wrong way; now even though I have a better handle on it I'm still stumped.
I have folders set up in a directory structure like this:
Root
Folder1
codeFolder
source1
source2
resources
buildScript
Manifest.mf
Folder2
codeFolder
source1
source2
resources
buildScript
The code in Folder2, when I compile it, is self-contained, so there's no problem there. But, I'd like to start including the code in Folder2 in Folder1's JAR file. To complicate matters, both code folders have subdirectories named source1 and source2.
I think I can create a JAR file using this command from the Folder1 directory:
jar -cvmf Manifest.mf codefolder/source1/*.class codefolder/source2/*.class ../Folder2/codefolder/source1/*.class ../Folder2/codefolder/source2/*.class
But that would overwrite the source1 and source2 packages. That's the only way I can think of to do it, though, so I must be missing something.
Does anyone know if there's a way to do this while keeping the packages distinct?
Thanks,
Zel2008

New Topic/Question
Reply




MultiQuote



|