[ 
https://issues.apache.org/jira/browse/CASSANDRA-16560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17316057#comment-17316057
 ] 

Berenguer Blasi commented on CASSANDRA-16560:
---------------------------------------------

Generating eclipse files working

{noformat}
diff --git a/build.xml b/build.xml
index 15f3219122..cb5b207b1e 100644
--- a/build.xml
+++ b/build.xml
@@ -2156,9 +2156,17 @@
         <fileset dir="build/lib/jars">
            <include name="**/*.jar" />
         </fileset>
+        <fileset dir="build/test/lib/jars">
+           <include name="**/*.jar" />
+        </fileset>
        </path>
        <property name="eclipse-project-libs" 
refid="eclipse-project-libs-path"/>
-       <script language="javascript" classpathref="cassandra.classpath"> 
<![CDATA[
+       <script language="javascript">
+          <classpath>
+            <path refid="cassandra.classpath"/>
+            <path refid="cassandra.classpath.test"/>
+          </classpath>
+          <![CDATA[
                var File = java.io.File;
                var FilenameUtils = 
Packages.org.apache.commons.io.FilenameUtils;
                jars = 
project.getProperty("eclipse-project-libs").split(project.getProperty("path.separator"));
@@ -2166,9 +2174,8 @@
                cp = "";
            for (i=0; i< jars.length; i++) {
               srcjar = FilenameUtils.getBaseName(jars[i]) + '-sources.jar';
-                  srcdir = 
FilenameUtils.concat(project.getProperty("build.dir.lib"), 'sources');
+                   srcdir = 
FilenameUtils.concat(project.getProperty("build.test.dir"), 'sources');
                   srcfile = new File(FilenameUtils.concat(srcdir, srcjar));
-
                   cp += ' <classpathentry kind="lib" path="' + jars[i] + '"';
                   if (srcfile.exists()) {
                      cp += ' sourcepath="' + srcfile.getAbsolutePath() + '"';
{noformat}

> Update IDE and Eclipse classpaths for tests (after migration to 
> resolver-ant-tasks)
> -----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16560
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16560
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Michael Semb Wever
>            Priority: Normal
>
> CASSANDRA-16391 broke being able to compile the project in IDE (and Eclipse?) 
> as the test dependency jar files are no longer placed under 
> {{build/lib/jar/}}. They are now found under {{build/test/lib/jar/}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to