Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016685 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | always | 2011-04-07 12:46 | 2011-05-31 11:52 | |||
Reporter | HexDump | View Status | public | |||||
Assigned To | jpabloae | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 2.50MP30 | |||
Status | closed | Fix in branch | 2.50 | Fixed in SCM revision | b4b65665f2f1 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0016685: Test for JAVA_HOME should be placed after root test is done in build.xml | |||||||
Description | <target name="init" depends="code.rev"> <fail if="no.java.home" message="The environment variable JAVA_HOME is not $ <fail if="root.user" message="Don't run ant tasks with the root user" /> </target> This should be set as: <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 $ </target> The problem here are environment vars. On ubuntu I had my java_home, etc... in /etc/environment. This seems not to be exported when going super user, so, I was getting an error saying that JAVA_HOME was not set, but it would have been much more better to flag that root account should not be used. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0035728) hgbot (developer) 2011-04-07 12:56 |
Repository: erp/stable/2.50 Changeset: b4b65665f2f1e62f4fdaaf0c01360f0d2ca84eba Author: Juan Pablo Aroztegi <juanpablo.aroztegi <at> openbravo.com> Date: Thu Apr 07 12:55:31 2011 +0200 URL: http://code.openbravo.com/erp/stable/2.50/rev/b4b65665f2f1e62f4fdaaf0c01360f0d2ca84eba [^] Fixes 16685: 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. --- M build.xml --- |
(0037820) gorka_gil (administrator) 2011-05-31 11:52 |
Verified. |
![]() |
|||
Date Modified | Username | Field | Change |
2011-04-07 12:49 | iperdomo | Type | defect => backport |
2011-04-07 12:49 | iperdomo | fix_in_branch | => 2.50 |
2011-04-07 12:51 | iperdomo | Assigned To | iperdomo => jpabloae |
2011-04-07 12:56 | hgbot | Checkin | |
2011-04-07 12:56 | hgbot | Note Added: 0035728 | |
2011-04-07 12:56 | hgbot | Status | scheduled => resolved |
2011-04-07 12:56 | hgbot | Resolution | open => fixed |
2011-04-07 12:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/b4b65665f2f1e62f4fdaaf0c01360f0d2ca84eba [^] |
2011-05-31 11:52 | gorka_gil | Note Added: 0037820 | |
2011-05-31 11:52 | gorka_gil | Status | resolved => closed |
2011-05-31 11:52 | gorka_gil | Fixed in Version | => 2.50MP30 |
Copyright © 2000 - 2009 MantisBT Group |