mirror of https://github.com/apache/cassandra
Fix classpath file creation for eclipse
Patch by Yash Ladha; reviewed by Benjamin Lerer and Berenguer Blasi for CASSANDRA-17294 When building the eclipse file for development, `.classpath` file was not correctly generated as it was not getting closed. Also there were missing third-party libs that were essential for development. This commit fixes the generation of classpath for `generate-eclipse-files` command.
This commit is contained in:
parent
32bdf14ec9
commit
6d7b0a1079
37
build.xml
37
build.xml
|
|
@ -2111,7 +2111,24 @@
|
|||
</natures>
|
||||
</projectDescription>]]>
|
||||
</echo>
|
||||
<echo file=".classpath"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<path id="eclipse-project-libs-path">
|
||||
<fileset dir="lib">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<fileset dir="build/lib/jars">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<fileset dir="build/test/lib/jars">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
<pathconvert property="eclipse-libs-list" refid="eclipse-project-libs-path" pathsep="${line.separator}">
|
||||
<mapper>
|
||||
<regexpmapper from="^(.*)$$" to='<classpathentry kind="lib" path="\1\" \/>'/>
|
||||
</mapper>
|
||||
</pathconvert>
|
||||
<property name="eclipse-project-libs" refid="eclipse-project-libs-path"/>
|
||||
<echo file=".classpath"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/java"/>
|
||||
<classpathentry kind="src" path="src/resources"/>
|
||||
|
|
@ -2131,26 +2148,16 @@
|
|||
<classpathentry kind="output" path="build/classes/eclipse"/>
|
||||
<classpathentry kind="lib" path="test/conf"/>
|
||||
<classpathentry kind="lib" path="${java.home}/../lib/tools.jar"/>
|
||||
${eclipse-libs-list}
|
||||
</classpath>
|
||||
]]>
|
||||
</echo>
|
||||
<path id="eclipse-project-libs-path">
|
||||
<fileset dir="lib">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<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"/>
|
||||
<taskdef name="echoeclipseprojectslibs" classname="org.apache.cassandra.anttasks.EchoEclipseProjectLibs" classpath="${test.classes}">
|
||||
<taskdef name="echoeclipseprojectslibs" classname="org.apache.cassandra.anttasks.EchoEclipseProjectLibs" classpath="${test.classes}">
|
||||
<classpath>
|
||||
<path refid="cassandra.classpath"/>
|
||||
<path refid="cassandra.classpath.test"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
</taskdef>
|
||||
<mkdir dir=".settings" />
|
||||
</target>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue