Optional check file permissions
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 19 Nov 2008 16:05:47 +0000
changeset 2026 84de36177925
parent 2025 31edf81ea26f
child 2027 c706535a4934
Optional check file permissions
build.xml
src-diagnostics/build.xml
--- a/build.xml	Wed Nov 19 15:38:03 2008 +0000
+++ b/build.xml	Wed Nov 19 16:05:47 2008 +0000
@@ -99,6 +99,7 @@
 	<property name="obx.export.RD" value="false"/>
 	<property name="obx.export.DB" value="false"/>
 	<property name="obx.export.CS" value="false"/>
+	<property name="chekPerms" value="false"/>
 	
 	<condition property="mode.war">
 	  <equals arg1="war" arg2="${deploy.mode}"/>
@@ -519,6 +520,7 @@
 	</target>
 
 	 <target name="diagnostic">
+	 	  <ant dir="src-diagnostics" antfile="build-create.xml" target="build"/>
 	    <ant dir="src-diagnostics" target="check.all"/>
 	  </target>
 </project>
--- a/src-diagnostics/build.xml	Wed Nov 19 15:38:03 2008 +0000
+++ b/src-diagnostics/build.xml	Wed Nov 19 16:05:47 2008 +0000
@@ -27,8 +27,11 @@
     <http url="${tomcat.manager.url}/../OpenbravoDiagnostics/Check.html"/>
   </condition>
 
-	<condition property="isUnix">
-	  <os family="unix"/>
+	<condition property="isCheckPerms">
+		<and>
+	    <os family="unix"/>
+			<equals arg1="${chekPerms}" arg2="true"/>
+	  </and>
   </condition>
 
 
@@ -50,7 +53,6 @@
 	 </taskdef>
 
 	<target name="check.all">
-		<ant antfile="build-create.xml" target="build"/>
 		<antcall target="check.permissions"/>
 		<antcall target="check.log4j"/>
 		<antcall target="check.db"/>
@@ -66,7 +68,7 @@
 		<echo message="log4j.lcf file OK"/>
 	</target>
 	
-	<target name="check.permissions" if="isUnix">
+	<target name="check.permissions" if="isCheckPerms">
 		<echo message="Checking file permissions for current user, (this will take a while)..."/>
 		<exec executable="./check-ob-perms.sh" failonerror="true">
 			<arg value=".."/>