• 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: wolips.properties hardcoded in build.xml
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wolips.properties hardcoded in build.xml


  • Subject: Re: wolips.properties hardcoded in build.xml
  • From: Þór Sigurðsson <email@hidden>
  • Date: Thu, 06 Jun 2013 09:29:36 +0000
  • Thread-topic: wolips.properties hardcoded in build.xml

Like this:

        <target name="init.properties">
                <property file="build.properties" />
                <property name="mysignaturedir" value="/Users/thors/I_AM_LEGEND" />
                <condition property="wolips.properties" value="/some/really/creepy/location/for/a/secret/wolips/file">
                        <resourceexists>
                                <file file="${mysignaturedir}" />
                        </resourceexists>
                </condition>
                <property name="wolips.properties" value="${user.home}${file.separator}Library${file.separator}Application Support${file.separator}WOLips${file.separator}wolips.properties" />

Properties are immutable, so once set it can't be overwritten.

So...

If /Users/thors/I_AM_LEGEND exists (created with touch /Users/thors/I_AM_LEGEND):

devc:WOSandkassi thors$ ant
Buildfile: /Users/thors/US/Sandkassi/WOSandkassi/build.xml

init.properties:

BUILD FAILED
/Users/thors/US/Sandkassi/WOSandkassi/build.xml:41: The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your /some/really/creepy/location/for/a/secret/wolips/file is correct.

Total time: 0 seconds
devc:WOSandkassi thors$


Fails because my "/some/really/creepy/location/for/a/secret/wolips/file" doesn't exist ;)

If I remove the file, the build succeeds. If I copy the current props file to this new name, it works also.


On 6.6.2013, at 08:09, Markus Ruggiero wrote:

The name wolips.properties is hardcoded in each build.xml

<property name="wolips.properties" value="${user.home}${file.separator}Library${file.separator}Application Support${file.separator}WOLips${file.separator}wolips.properties" />

Is there a way to make this dynamic? From Eclipse/WOLips preferences the name of the file is available.  Can ant access this value?

Reason:

I have several customers with several Wonder projects. For each customer I have a separate workspace. Having a dedicated wolips.properties per customer (which is perfectly doable and works) I can have the customers completely independent of each other. Each customer can have its individual WebObjects and Wonder version. Also I can prevent customer frameworks (that must be installed for a build) to pollute my /Library/Frameworks folder. I would only have to edit the name for wolips.properties in all the build.xml. That is doable and is what I currently do.

A couple days ago I forgot that the build.xml references a custom named wolips.properties and sent the project to the customer. They were not able to build the application because at their site they use the standard named wolips.properties.

Therefore my question: can the reference to wolips.properties be found from the workspace settings and determined dynamically by ant?

Thanks a lot for any help
---markus---



Markus Ruggiero
email@hidden<mailto:email@hidden>
Check out the new book about Project Wonder and WebObjects on http://www.kataputt.com/





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


________________________________

Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/fyrirvari

 _______________________________________________
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


References: 
 >wolips.properties hardcoded in build.xml (From: Markus Ruggiero <email@hidden>)

  • Prev by Date: wolips.properties hardcoded in build.xml
  • Next by Date: Re: patch for wonders NSArray implementation
  • Previous by thread: wolips.properties hardcoded in build.xml
  • Next by thread: Re: wolips.properties hardcoded in build.xml
  • Index(es):
    • Date
    • Thread