Re: my first target
Re: my first target
- Subject: Re: my first target
- From: tiennou <email@hidden>
- Date: Thu, 4 Oct 2007 14:39:41 +0200
Le 4 oct. 07 à 14:23, Alex West a écrit : Hi,
I have just switched over to xcode from text mate. I am working on a large _javascript_ JSEE application and I would like to make a target that copies a particular src directory to a server. The trick is that unix likes to over write directories and I want to merge my src directory with a particular directory on the server. Im using a great utility to mount the server on my computer and right now I am running a shell command
cp -rf /my source directory /server/directory
Is there anyway to make a target that will execute that command for me so that I can just press build and then test?
Yes, you would need to add a Run Script Phase (from Project > New Build Phases > ...). The trick is that you'll need to use Xcode environement variables to do the work cleanly (eg. using "${TARGET_BUILD_DIR}/${WRAPPER_NAME}" will always point to your target product (eg build/Debug/TestApp.app or whatever)...
You can also create a new target and put your new build phase here, (make it dependent of your main target), like that you could still build without sending to server... (You will also need to hardcode the WRAPPER_NAME above, since it will obviously be different ;-)).
HTH,
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden