You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2013/09/20 03:47:02 UTC
svn commit: r1524884 - in /lucene/dev/branches/branch_4x: ./ build.xml
Author: sarowe
Date: Fri Sep 20 01:47:02 2013
New Revision: 1524884
URL: http://svn.apache.org/r1524884
Log:
Intellij config: pick up JDK definition from build.properties file under lucene/ or in home dir, and use it to populate config, so that updating doesnt have to involve manually setting the JDK. Example line from my lucene/build.properties:
idea.jdk=project-jdk-name="1.7" project-jdk-type="JavaSDK"
(merged trunk r1524883)
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/build.xml
Modified: lucene/dev/branches/branch_4x/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/build.xml?rev=1524884&r1=1524883&r2=1524884&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/build.xml (original)
+++ lucene/dev/branches/branch_4x/build.xml Fri Sep 20 01:47:02 2013
@@ -236,8 +236,16 @@
</target>
<target name="idea" depends="resolve" description="Setup IntelliJ IDEA configuration">
+ <!-- Look for property definition for ${idea.jdk} in various *build.properties files -->
+ <property file="${user.home}/lucene.build.properties"/>
+ <property file="${user.home}/build.properties"/>
+ <property file="lucene/build.properties"/>
+ <property name="idea.jdk" value=""/> <!-- Define ${idea.jdk} if it's not in any *build.properties file -->
<copy todir=".">
<fileset dir="dev-tools/idea"/>
+ <filterset begintoken="@" endtoken="@">
+ <filter token="idea.jdk" value="${idea.jdk}"/>
+ </filterset>
</copy>
<echo>
To complete IntelliJ IDEA setup, you must manually configure