lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject svn commit: r1524883 - /lucene/dev/trunk/build.xml
Date Fri, 20 Sep 2013 01:45:34 GMT
Author: sarowe
Date: Fri Sep 20 01:45:33 2013
New Revision: 1524883

URL: http://svn.apache.org/r1524883
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"

Modified:
    lucene/dev/trunk/build.xml

Modified: lucene/dev/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/build.xml?rev=1524883&r1=1524882&r2=1524883&view=diff
==============================================================================
--- lucene/dev/trunk/build.xml (original)
+++ lucene/dev/trunk/build.xml Fri Sep 20 01:45:33 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



Mime
View raw message