• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building a class hierarchy in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a class hierarchy in Xcode


  • Subject: Re: Building a class hierarchy in Xcode
  • From: Olivier Scherler <email@hidden>
  • Date: Wed, 11 Aug 2004 17:39:58 +0200

Hello from the new kid on the list,

I originally posted this th the Java Dev list but it seems the Xcode list is
more appropriate.

I am making a program for the Tiny Internet Interface (TINI) in Java. Basically,
it involves writing a Java 1.1 program, compile it and run the class files
through a converter, like this:

  javac -target 1.1 -d classes sources/*.java
  java TINIConvertor -f classes -o tinifile.tini

I'd like to do the same in Xcode. Here's what I tried:

- Make a new Java Tool project, let's call it Hello;

- Change Targets -> Hello -> Settings -> Java Archive Settings -> Product type
to "Class Hierarchy" in order to make Xcode build a class hierarchy instead of a
jar file. The converter needs class files;

- Change the "-jar Hello.jar" argument in Executables -> java to
"-classpath Hello Hello" so the project runs on the class files in
build/Hello instead of the now non existent jar file;

I also added a shell script build phase to run the TINIConvertor on the class
files.

My problem is that whenever I modify the sources and rebuild the project, the
class files in build/Hello are not updated, unless I clean the target.
Therefore, when I run the project, I run old code and when I make the tini file,
I do so with old classes.

It's easy to observe this behavior in a new Java Tool project:

- Make a new project by following the steps above;

- Build and run;

- Modify the Hello World! string in Hello.java;

- Save, build and run and behold, Xcode is still running on old class files.

Any advice would be greatly appreciated.

Olivier

b Unicode ribbon campaignB b No ASCII, anywhere b
b <http://ithink.ch/unicode>                   b

:: Olivier Scherler :: NeuchC"tel (CH) :: <http://ithink.ch/blog/> ::
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: A warning about Mac OS X 10.3.5 + NFS
  • Next by Date: Re: Xcode 1.5 Release - Java Code Completion Issues
  • Previous by thread: Re: Compile
  • Next by thread: Re: Xcode 1.5 Release - Java Code Completion Issues
  • Index(es):
    • Date
    • Thread