Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-564


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-564
    Summary: PATCH - check for MAVEN_HOME variable at bootstrap
       Type: Improvement

     Status: Unassigned
   Priority: Minor

 Time Spent: Unknown
  Remaining: 10 minutes

    Project: maven
 Components: 
             core
   Versions:
             1.0-beta-10
             1.0-final

   Assignee: 
   Reporter: Felipe Leme

    Created: Mon, 14 Jul 2003 12:51 AM
    Updated: Mon, 14 Jul 2003 12:51 AM
Environment: Any

Description:

Hi,

I tried to compile Maven from CVS, but it didn't work because I didn't have MAVEN_HOME 
set. 
It took me a while to figure that out, so I wrote a small patch to check that on ant.

Regards,

Felipe

[EMAIL PROTECTED]/cvs/maven-patched: cvs diff -u build-bootstrap.xml
Index: build-bootstrap.xml
===================================================================
RCS file: /home/cvspublic/maven/build-bootstrap.xml,v
retrieving revision 1.201
diff -u -r1.201 build-bootstrap.xml
--- build-bootstrap.xml 4 Jul 2003 22:43:13 -0000       1.201
+++ build-bootstrap.xml 14 Jul 2003 05:08:24 -0000
@@ -8,8 +8,12 @@
   <property environment="env"/>
   <property name="maven.home" value="${env.MAVEN_HOME}"/>

+  <target name="check-env" description="Check if environment variables are 
set">
+     <echo>maven.home = ${maven.home}</echo>
+     <fail unless="env.MAVEN_HOME" message="You MUST set MAVEN_HOME first"/>
+  </target>

-  <target name="env" depends="check-properties">
+  <target name="env" depends="check-properties,check-env">
    <echo>maven.home = ${maven.home}</echo>
    <echo>maven.home.local = ${maven.home.local}</echo>
    <echo>maven.repo.local = ${maven.repo.local}</echo>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to