Re: Xcode WO template (Xcode 2.2, WO 5.3)
Re: Xcode WO template (Xcode 2.2, WO 5.3)
- Subject: Re: Xcode WO template (Xcode 2.2, WO 5.3)
- From: Dev WO <email@hidden>
- Date: Tue, 10 Jan 2006 10:42:09 +0100
Hi Lachlan,
thanks for the tip, at least I know how to add new variables;)
But it doesn't work for the files I added to the template. For
exemple if I add a newFile.java to the Classes, with the exact same
header as the Session.java for example, the variables is Session.java
are replaced, but not the ones in newFile.java.
So maybe there a "setup" script when creating a new project in which
the files to "update" are listed?
Xavier
Hi there,
(removing cross-post)
On 10/01/2006, at 1:18 AM, Dev WO wrote:
Merging what I found on the mailing list and Nathan Walker podcast
#4 I was able to create the template:)
The last thing I couldn't find:
I added some custom files to the template, I added the header with
the different variable (date, user, project name, etc), but it
seems like Xcode doesn't check my custom files and just replaces
the variables in it's own default files.
I know it's not an issue in the way it won't break the
application, but I'll be happy to know how to make Xcode replace
the variables in the template's added files.
So far as replacing variables you'll need to add your variable keys
and their associated values (i.e., your prefs for those keys) to
the appropriate defaults dictionary...
So if you've got:
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions -
dict ORGANIZATIONNAME "My Company"
Then put:
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions -
dict-add SomeKey "some value" anotherKey "another value"...
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden