Author: [email protected]
Date: Wed Aug  3 12:37:07 2011
New Revision: 1242

Log:
[AMDATUAUTH-57] Moved the copy to deploy dir stuff to the "deploy" profile. 
Also fixed the check that verifies if the amdatu.deploy.directory property is 
set. If not, a warning message is displayed instead of creating the bogus 
"${amdatu.deploy.directory}" directory.
Finally, removed the config copy logic as it didn't work from the root 
directory (as it used relative paths) and was not really necessary anyway.

Modified:
   trunk/amdatu-auth/pom.xml

Modified: trunk/amdatu-auth/pom.xml
==============================================================================
--- trunk/amdatu-auth/pom.xml   (original)
+++ trunk/amdatu-auth/pom.xml   Wed Aug  3 12:37:07 2011
@@ -416,33 +416,21 @@
                 </goals>
                 <configuration>
                   <target>
-
                     <taskdef 
resource="net/sf/antcontrib/antcontrib.properties" 
classpathref="maven.compile.classpath"/>
                     <available 
file="${project.build.directory}/${project.build.finalName}.jar" 
property="fileExists" value="true"/>
-                    <available file="../config" property="configFileDirExists" 
value="true"/>
-
                     <if>
                       <isset property="fileExists" />
                       <then>
                         <if>
-                          <equals arg1="${amdatu.deploy.directory}" arg2="" />
+                          <isset property="amdatu.deploy.directory" />
                           <then>
-                            <echo message="Property amdatu.deploy.directory 
not defined, skipping copy to deploy dir task"/>
-                          </then>
-                          <else>
                             <copy
                               
file="${project.build.directory}/${project.build.finalName}.jar"
                               
tofile="${amdatu.deploy.directory}/${project.artifactId}-${project.version}.jar"
                               overwrite="true" />
-
-                            <if>
-                              <isset property="configFileDirExists" />
-                              <then>
-                                <copy todir="${amdatu.deploy.directory}" 
overwrite="false">
-                                  <fileset dir="../config/src/main/resources"/>
-                                </copy>
-                              </then>
-                            </if>
+                          </then>
+                          <else>
+                            <echo message="Property amdatu.deploy.directory 
not defined, skipping copy to deploy dir task"/>
                           </else>
                         </if>
                       </then>
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to