You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2006/11/19 22:52:37 UTC

[jira] Created: (LUCENE-717) src builds fail because of no "lib" directory

src builds fail because of no "lib" directory
---------------------------------------------

                 Key: LUCENE-717
                 URL: http://issues.apache.org/jira/browse/LUCENE-717
             Project: Lucene - Java
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.0.0
            Reporter: Hoss Man


I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...

hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
  ...
hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
  ...
test:
    [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test

BUILD FAILED
/home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.

(it's refrenced in junit.classpath, but i'm not relaly sure why)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Doron Cohen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-717?page=all ]

Doron Cohen updated LUCENE-717:
-------------------------------

    Lucene Fields: [New, Patch Available]  (was: [New])

> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>         Attachments: common-build.xml.patch.txt
>
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Doron Cohen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-717?page=comments#action_12453738 ] 
            
Doron Cohen commented on LUCENE-717:
------------------------------------

I'm ok with this...

> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>         Attachments: common-build.xml.patch.txt
>
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Doron Cohen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-717?page=comments#action_12453672 ] 
            
Doron Cohen commented on LUCENE-717:
------------------------------------

That's because junit,jar is required for compiling and running the tests. 
(Guess we can't distribute junit.jar with Lucene.)

This is from the commn-build.xml:
      ##################################################################
      JUnit not found.
      Please make sure junit.jar is in ANT_HOME/lib, or made available
      to Ant using other mechanisms like -lib or CLASSPATH.
      ##################################################################


> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: [jira] Resolved: (LUCENE-717) src builds fail because of no "lib" directory

Posted by Chris Hostetter <ho...@fucit.org>.
: I left the directory in CVS for now.  Should I svn remove it, or is
: there a reason to keep it?

i think we should remove it ... leaving it there could confuse people into
thinking it had a purpose.




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Resolved: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-717?page=all ]

Otis Gospodnetic resolved LUCENE-717.
-------------------------------------

    Resolution: Fixed

Fixed by removing a few lines from build.xml that check for lib/*.jar.
I left the directory in CVS for now.  Should I svn remove it, or is there a reason to keep it?

> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>         Attachments: common-build.xml.patch.txt
>
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-717?page=comments#action_12453684 ] 
            
Hoss Man commented on LUCENE-717:
---------------------------------

I don't really see what that has to do with it ... I'm not talking about the ANT_HOME/lib, I'm talking about the "lib" directory directly under the root directory you get when checking out hte lucene "trunk" ... 

        http://svn.apache.org/viewvc/lucene/java/trunk/lib/

...it's empty, and doesn't get included in the source tar balls, but the junit.classpath refrences it, so the build fails if it doesn't exist.

we should either eliminate it if it's not needed, or include it in the tar balls if we want to leave it as a placeholder for things that may come in the future.

> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Doron Cohen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-717?page=all ]

Doron Cohen updated LUCENE-717:
-------------------------------

    Attachment: common-build.xml.patch.txt

"compile-test" target verifies that a lib dir exists.

> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>         Attachments: common-build.xml.patch.txt
>
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Doron Cohen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-717?page=comments#action_12453699 ] 
            
Doron Cohen commented on LUCENE-717:
------------------------------------

...right... 

Mixed up the two because building Lucene with IDE felt wrong to point the IDE to the ant directories for junit.jar, so I placed it under Lucene's lib.

Anyhow, if lib is to be kept, but not wishing to pack an empty dir, "compile-test" could create it if it does not already exist.


> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-717) src builds fail because of no "lib" directory

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/LUCENE-717?page=comments#action_12453735 ] 
            
Otis Gospodnetic commented on LUCENE-717:
-----------------------------------------

I almost committed this, but.... I'm for rm -rfing that lib dir and fixing junit.classpath, since we don't need it, instead of just mkdiring it, just to make the build pass.

Something like this:
Index: build.xml
===================================================================
--- build.xml   (revision 479793)
+++ build.xml   (working copy)
@@ -32,9 +32,11 @@
     <pathelement location="${build.dir}/classes/test"/>
     <pathelement location="${build.dir}/classes/java"/>
     <pathelement location="${build.dir}/classes/demo"/>
+    <!--
     <fileset dir="lib">
       <include name="*.jar"/>
     </fileset>
+    -->
     <pathelement path="${java.class.path}"/>
   </path>



> src builds fail because of no "lib" directory
> ---------------------------------------------
>
>                 Key: LUCENE-717
>                 URL: http://issues.apache.org/jira/browse/LUCENE-717
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.0
>            Reporter: Hoss Man
>         Attachments: common-build.xml.patch.txt
>
>
> I just downloaded http://mirrors.ibiblio.org/pub/mirrors/apache/lucene/java/lucene-2.0.0-src.tar.gz and noticed that you can't compile and run the tests from that src build because it doesn't inlcude the lib dir (and the build file won't attempt to make it if it doesn't exist) ...
> hossman@coaster:~/tmp/l2$ tar -xzvf lucene-2.0.0-src.tar.gz
>   ...
> hossman@coaster:~/tmp/l2$ cd lucene-2.0.0/
> hossman@coaster:~/tmp/l2/lucene-2.0.0$ ant test
>   ...
> test:
>     [mkdir] Created dir: /home/hossman/tmp/l2/lucene-2.0.0/build/test
> BUILD FAILED
> /home/hossman/tmp/l2/lucene-2.0.0/common-build.xml:169: /home/hossman/tmp/l2/lucene-2.0.0/lib not found.
> (it's refrenced in junit.classpath, but i'm not relaly sure why)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org