Skip to content

Commit

Permalink
fix: compile apache thrift with cassandra-stress -> avoid issue of cl…
Browse files Browse the repository at this point in the history
…ass not found

Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Jul 31, 2024
1 parent 6437142 commit 5b73b44
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -990,18 +990,6 @@
<target name="jar"
depends="stress-build, write-poms"
description="Assemble Cassandra JAR files">
<mkdir dir="${build.classes.main}/META-INF"/>
<mkdir dir="${build.classes.thrift}/META-INF"/>
<copy file="LICENSE.txt"
tofile="${build.classes.main}/META-INF/LICENSE.txt"/>
<copy file="LICENSE.txt"
tofile="${build.classes.thrift}/META-INF/LICENSE.txt"/>
<copy file="NOTICE.txt"
tofile="${build.classes.main}/META-INF/NOTICE.txt"/>
<copy file="NOTICE.txt"
tofile="${build.classes.thrift}/META-INF/NOTICE.txt"/>

<!-- Stress jar -->
<mkdir dir="${stress.build.classes}"/>
<manifest file="${stress.manifest}">
<attribute name="Built-By" value="Pavel Yaskevich"/>
Expand All @@ -1011,11 +999,8 @@
<mkdir dir="${build.dir}/tools/lib/"/>
<jar destfile="${build.dir}/tools/lib/stress.jar" manifest="${stress.manifest}">
<fileset dir="${stress.build.classes}"/>
<fileset dir="${build.classes.main}">
<exclude name="org/apache/cassandra/thrift/ITransportFactory*.class"/>
<exclude name="org/apache/cassandra/thrift/TFramedTransportFactory*.class"/>
<exclude name="com/scylladb/**"/>
</fileset>
<fileset dir="${build.classes.main}"/>
<fileset dir="${build.classes.thrift}"/>
</jar>
</target>

Expand Down

0 comments on commit 5b73b44

Please sign in to comment.