Building Frameworks in Java
Building Frameworks in Java
- Subject: Building Frameworks in Java
- From: Bradley Smith <email@hidden>
- Date: Sat, 31 Jan 2004 13:20:37 -0600
I am trying to develop a Cocoa program with another developer and my
portion is written in Java, his is written in Objective-C. I build all
of my stuff with Ant and he builds his in XCode. I have been trying to
figure out how to share my code with his, and so far I have encountered
the following problems:
1 - I generated header files for my Java classes to help keep things
in sync, and I can't figure out how to get those header files into
XCode without having to set an explicit search path. My headers are
organized into directories that mimic the package structure of the Java
classes they document. This is done to create pseudo namespaces to
differentiate any classes with the same name. This isn't mandatory,
but I would like to keep it that way. The problem is that XCode
automatically flattens all the files into one directory so the imports
like "com/doodah/Class.h" don't work.
2 - I finally figured out how to include the jar file in the project
and the built application. I added the thing as a framework, then
under the target settings I told it to merge the contents with the
executable.
After futzing with this for a while, I thought that a better option
might be to create a framework with all the headers and jar files, but
I can't find any documentation on how to do this. I would like to make
it as simple as possible for me to relay my Java changes to the other
developer.
Has anyone done this before that might have some pointers? I have
exhausted all the documentation I know of and I would like to be able
to move on to bigger stuff.
Brad.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.