-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1326 from matthiasblaesing/share_internal_memory
Ensure pointers indirected from Memory and pointing into Memory should retain originating object
- Loading branch information
Showing
6 changed files
with
344 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir=".." name="JNA-IDE"> | ||
<target name="run-selected-file-in-src"> | ||
<fail unless="run.class">Must set property 'run.class'</fail> | ||
|
||
<subant antfile="build.xml" buildpath="${basedir}" target="compile-tests"/> | ||
|
||
<java classname="${run.class}" failonerror="true" fork="true"> | ||
<classpath> | ||
<pathelement path="build/classes"/> | ||
<pathelement path="build/test-classes"/> | ||
</classpath> | ||
</java> | ||
</target> | ||
<target name="debug-selected-file-in-src"> | ||
<fail unless="debug.class">Must set property 'debug.class'</fail> | ||
|
||
<subant antfile="build.xml" buildpath="${basedir}" target="compile-tests"/> | ||
|
||
<path id="cp"> | ||
<pathelement path="build/classes"/> | ||
<pathelement path="build/test-classes"/> | ||
</path> | ||
<nbjpdastart addressproperty="jpda.address" name="JNA" transport="dt_socket"> | ||
<classpath refid="cp"/> | ||
</nbjpdastart> | ||
<java classname="${debug.class}" fork="true"> | ||
<classpath refid="cp"/> | ||
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=${jpda.address}"/> | ||
</java> | ||
</target> | ||
|
||
<target name="run-selected-file-in-test"> | ||
<fail unless="run.class">Must set property 'run.class'</fail> | ||
|
||
<subant antfile="build.xml" buildpath="${basedir}" target="compile-tests"/> | ||
|
||
<java classname="${run.class}" failonerror="true" fork="true"> | ||
<classpath> | ||
<pathelement path="lib/hamcrest-core-1.3.jar:lib/junit.jar:lib/test/dom4j-1.6.1.jar:lib/test/guava-27.1-jre.jar:lib/test/javassist-3.12.1.GA.jar:lib/test/reflections-0.9.11.jar:lib/test/slf4j-api-1.6.1.jar"/> | ||
<pathelement path="build/jna.jar"/> | ||
<pathelement path="build/test-classes"/> | ||
</classpath> | ||
</java> | ||
</target> | ||
|
||
<target name="debug-selected-file-in-test"> | ||
<fail unless="debug.class">Must set property 'debug.class'</fail> | ||
|
||
<subant antfile="build.xml" buildpath="${basedir}" target="compile-tests"/> | ||
|
||
<path id="cp"> | ||
<pathelement path="lib/hamcrest-core-1.3.jar:lib/junit.jar:lib/test/dom4j-1.6.1.jar:lib/test/guava-27.1-jre.jar:lib/test/javassist-3.12.1.GA.jar:lib/test/reflections-0.9.11.jar:lib/test/slf4j-api-1.6.1.jar"/> | ||
<pathelement path="build/jna.jar"/> | ||
<pathelement path="build/test-classes"/> | ||
</path> | ||
<nbjpdastart addressproperty="jpda.address" name="JNA" transport="dt_socket"> | ||
<classpath refid="cp"/> | ||
</nbjpdastart> | ||
<java classname="${debug.class}" fork="true"> | ||
<classpath refid="cp"/> | ||
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=${jpda.address}"/> | ||
</java> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.