Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Building using my own tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building using my own tools



The PB folks probably will have a better suggestion than mine, but here is
one way.

Create a target to do the pre-processing. Create a shell script that does
whatever it is you need done (e.g. invoking your java utilities). Click the
target tab, select something in the Build area (if you don't select
something the menu will have the script phase stuff ghosted out), then do
Project->New Phase and select a shell script phase. Now, enter the name of
the shell script in the text field. You need to precede the script name with
'./' as in ./my_script. Make sure the script is executable (chmod +x
my_script) once you've created it.

Next, drag the target you created above into the target containing your
other files. (This doesn't move the target it just adds it as a dependency
to your original target). Now, when you build your original target, PB will
build the new target first.

If you don't have other targets in the project, you could also just create
an Aggregate target and put the original and new targets in that (in the
right order). If you always build the Aggregate it should do what you want.

Also, there may be a way to have a shell script run before files are built
by PB. That would probably be best. You would just add the script phase to
the build of your original target. I've only needed to do post-processing
(e.g. running rmic) and haven't noticed if there's a way to move a script
phase to the "front" or not.

Ron


On 2/22/01 7:19 PM, "Paul Ossenbruggen" <email@hidden> wrote:

> I am writing a java program that involves running my own java utility programs
> during the build phase, before the rest of the files can be compiled. One of
> the tools generates code from input interface files, the result of which must
> be compiled using the Java compiler. I would like to make ProjectBuilder
> invoke these utility programs during the build process. Is there a way to do
> this and if so, how?
>
> This is definitely impossible with CodeWarrior, I am hoping that
> ProjectBuilder is different.
>
> - Paul


References: 
 >Building using my own tools (From: Paul Ossenbruggen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.