1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-20 20:37:27 +01:00
metasploit-payloads/build.xml
James Lee 9a3cafc794 add support for java/meterpreter/reverse_http. assuming i didn't miss any files, fixes #4946, thanks mihi!
git-svn-id: file:///home/svn/framework3/trunk@13213 4d416f70-5f16-0410-b530-b9f4589650da
2011-07-18 23:15:06 +00:00

45 lines
1.3 KiB
XML

<?xml version="1.0"?>
<project name="Meterpreter" default="jar">
<target name="clean">
<delete dir="build" />
</target>
<target name="compile">
<mkdir dir="build/loader" />
<mkdir dir="build/meterpreter" />
<mkdir dir="build/stdapi" />
<javac srcdir="src/loader" destdir="build/loader" source="1.1" target="1.1" debug="no">
<include name="**/MemoryBufferURL*.java"/>
</javac>
<javac srcdir="src/meterpreter" destdir="build/meterpreter" source="1.1" target="1.1" debug="no">
<classpath>
<pathelement path="build/loader"/>
</classpath>
</javac>
<javac srcdir="src/stdapi" destdir="build/stdapi" source="1.1" target="1.1" debug="no">
<classpath>
<pathelement path="build/loader"/>
<pathelement path="build/meterpreter"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="extensions"/>
<jar destfile="extensions/meterpreter.jar" basedir="build/meterpreter" />
<jar destfile="extensions/ext_server_stdapi.jar" basedir="build/stdapi">
<manifest>
<attribute name="Extension-Loader" value="com.metasploit.meterpreter.stdapi.Loader"/>
</manifest>
</jar>
</target>
<target name="deploy" depends="jar">
<copy todir="../../../../data/meterpreter">
<fileset dir="extensions">
</fileset>
</copy>
</target>
</project>