Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Location of build.properties

Apparently ant has issues finding user.home in some environments. Other options include:

- making changes in the build.properties in the trunk directory (and, for committers, being careful not to check it in)
- Specifying the overrides as system properties

-Tom

cowwoc wrote:
Odd. I tried that (placing build.properties in the home dir). Overriding
junit.lib didn't work for me.

Gili


mobrien wrote:
Gili,
	See trunk>build.xml and the build.properties precedence order.

<project name="trunk" default="build" basedir=".">
    <dirname  property="trunk.build.location" file="${ant.file.trunk}"/>
...
    <!-- Allows a user to overide certain user specific properties. -->
    <property file="${user.home}/build.properties"/>
...
    <property file="./build.properties"/>


	If you override properties in your own build.properties file you will not
need to modify the secondary one in the trunk.

	The <user-home> ie: in windows
		"C:\Documents and Settings\mfobrien\build.properties
		where I am overriding jdbc.driver.jar as

		jdbc.driver.jar=c:/view_w34/jlib/ojdbc14_102.jar

	You may also want to override database settings in your own
test.properties as well for things like the following
	
db.platform=org.eclipse.persistence.platform.database.oracle.OraclePlatform

	thank you
	/michael

-----Original Message-----
From: cowwoc [mailto:cowwoc@xxxxxxxxxxxxxxxx]
Sent: Wednesday, December 17, 2008 13:48
To: eclipselink-users@xxxxxxxxxxx
Subject: [eclipselink-users] Location of build.properties



http://wiki.eclipse.org/EclipseLink/Building reads "Define a
build.properties
file in your user home directory" but in fact build.properties is found at
the repository root directory not the user's home directory. Can someone
please update this?

I tried build.properties in my home directory and it did nothing.

Gili
--
View this message in context:
http://www.nabble.com/Location-of-build.properties-tp21058962p21058962.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users





Back to the top