If you put the file in ~/.build.properties - it's not working? You
might have to turn "ant clean" first.
Matt
On 3/29/07, maskkkk <[EMAIL PROTECTED]> wrote:
ERm...I thought it was working...
maskkkk wrote:
>
> Oh my bad...
>
> It didn't work because you have to put the file in
> %USERPROFILE%/.build.properties
>
> And not the root directory of the project.
>
>
> maskkkk wrote:
>>
>> Hello,
>>
>> I am trying to override some defaults in properties.xml (Appfuse 1.9.4)
>> in order to allow the app to switch between a test and a production
>> database.
>>
>> I read the following in the documentation in the file build.properties:
>>
>>
>> build.properties wrote:
>>>
>>> # database properties - written to database.properties at build time
>>> # ------------------------------------------------------------------
>>> # If you have a different database in production that you do in
>>> # development, you can uncomment and move the settings below to a
>>> # ~/.build.properties or ~/.appname-build.properties file and those
>>> # settings will override the defaults in properties.xml. If you're
>>> # convinced you'll stay with one database, you can change the
>>> # defaults in properties.xml.
>>> # ------------------------------------------------------------------
>>> #database.jar=${postgresql.jar}
>>> #database.type=postgresql
>>> #database.host=localhost
>>> ...
>>>
>>
>> In accordance with the comment above I followed the following steps:
>>
>> 1. Created a file called OSB/.build.properties file.
>> 2. Moved the following properties from build.properties to
>> OSB/.build.properties
>> a.
>> database.admin.url=jdbc:${database.type}://${database.host}/osb_test
>> b. database.admin.username=root
>> c. database.admin.password=sensitive_data_passwd
>> 3. I created a database called osb_test
>>
>> Now when I ran the [b]setup_db[/b] ant target, it was still accessing the
>> other database osb_db instead of osb_test.
>>
>> How can I fix this?
>>
>> Thank you,
>> Andrew J. Leer
>>
>
>
--
View this message in context:
http://www.nabble.com/Using-%7E-.build.properties-to-override-the-defaults-in-properties.xml--tf3486259s2369.html#a9733983
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]