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 - use -verbose

FYI: I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=259155

Gili


cowwoc wrote:
> 
> The problem is when using the top-level "ant" command with no arguments
> this information is buried somewhere deep. Furthermore it doesn't indicate
> where build.properties is being looked for (and the path used even if the
> file was not found).
> 
> Gili
> 
> 
> mobrien wrote:
>> 
>> Gili,
>> 	Hi, the ant script already prints out relevant info, here I overrode
>> junit - with a non-existent jar.
>> 	When running test script - all the db connection details are output.
>> 
>> C:\view_w34>ant build-eclipselink-jar
>> Buildfile: build.xml
>>      [echo] trunk.build.location = 'C:\view_w34'
>>      [echo] junit.lib='extension.oracle.lib.external/junit_overriden.jar'
>>      [echo] java.version='1.6.0_04'
>> 
>> 	If you need more output use the following [verbose] flag at the end of
>> your ant call
>> 
>> C:\view_w34>ant build-eclipselink-jar -verbose
>> 
>> 	thank you
>> 	/michael
>> -----Original Message-----
>> From: cowwoc [mailto:cowwoc@xxxxxxxxxxxxxxxx]
>> Sent: Wednesday, December 17, 2008 14:24
>> To: eclipselink-users@xxxxxxxxxxx
>> Subject: Re: [eclipselink-users] Location of build.properties
>> 
>> 
>> 
>> I would suggest modifying the main build.xml so it prints out "user.dir"
>> and
>> the values of top-level variables right at the beginning of the build.
>> This
>> would help debugging these problems.
>> 
>> Gili
>> 
>> 
>> Tom Ware wrote:
>>> 
>>> 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
>>>>>
>>>>>
>>>> 
>>> _______________________________________________
>>> eclipselink-users mailing list
>>> eclipselink-users@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Location-of-build.properties-tp21058962p21059612.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
>> 
>> 
> 
> 

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



Back to the top