You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2015/01/06 14:09:17 UTC

[5/6] incubator-calcite git commit: [CALCITE-539] Avoid rewrite of org-apache-calcite-jdbc.properties

[CALCITE-539] Avoid rewrite of org-apache-calcite-jdbc.properties


Project: http://git-wip-us.apache.org/repos/asf/incubator-calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/35a5b4f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-calcite/tree/35a5b4f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-calcite/diff/35a5b4f5

Branch: refs/heads/master
Commit: 35a5b4f53b550761b3e6f1321767471a9820d95f
Parents: dfdf700
Author: Vladimir Sitnikov <si...@gmail.com>
Authored: Wed Dec 17 23:17:17 2014 +0300
Committer: Vladimir Sitnikov <si...@gmail.com>
Committed: Tue Jan 6 15:01:13 2015 +0300

----------------------------------------------------------------------
 core/pom.xml | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-calcite/blob/35a5b4f5/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index 441d8d2..70feeb1 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -162,10 +162,6 @@ limitations under the License.
         </excludes>
       </resource>
       <resource>
-        <directory>src/main/resources/version</directory>
-        <filtering>true</filtering>
-      </resource>
-      <resource>
         <!-- Copy freemarker template and fmpp configuration files of
              Calcite's SQL parser to allow clients to extend parser. -->
         <directory>${basedir}/src/main/codegen</directory>
@@ -174,4 +170,25 @@ limitations under the License.
     </resources>
   </build>
 
+  <profiles>
+    <profile>
+      <!-- CALCITE-539: workaround for MSHARED-394: Avoid rewrite of
+      destination in DefaultMavenFileFilter#filterFile when producing
+      the same contents -->
+      <id>generate-version-properties</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+        <file><missing>target/classes/org-apache-calcite-jdbc.properties</missing></file>
+      </activation>
+      <build>
+        <resources>
+          <resource>
+            <directory>src/main/resources/version</directory>
+            <filtering>true</filtering>
+          </resource>
+        </resources>
+      </build>
+    </profile>
+  </profiles>
+
 </project>