details: /erp/devel/pi/rev/e2556cfac1b6
changeset: 11541:e2556cfac1b6
user: Juan Pablo Aroztegi <juanpablo.aroztegi <at> openbravo.com>
date: Thu Apr 07 12:54:22 2011 +0200
summary: Fixes 16684: swap the order in the root.user and no.java.home checks.
Some Linux systems don't have JAVA_HOME set for the root user.
When a user runs ant commands in these cases they get an
error about the JAVA_HOME not being set, but the real cause
is that they're running the command as root. Hence the order
swapping.
diffstat:
build.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c6571cdea5b0 -r e2556cfac1b6 build.xml
--- a/build.xml Thu Apr 07 12:41:22 2011 +0200
+++ b/build.xml Thu Apr 07 12:54:22 2011 +0200
@@ -329,8 +329,8 @@
<taskdef resource="axis-tasks.properties" classpathref="project.class.path"
/>
<target name="init" depends="code.rev">
+ <fail if="root.user" message="Don't run ant tasks with the root user" />
<fail if="no.java.home" message="The environment variable JAVA_HOME is not
set." />
- <fail if="root.user" message="Don't run ant tasks with the root user" />
</target>
<target name="code.rev" depends="set.code.rev">
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits