diff options
author | Sven Gothel <[email protected]> | 2010-04-13 14:52:51 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-13 14:52:51 +0200 |
commit | 74e0505c621c4573306675e0449e6dc73996eba1 (patch) | |
tree | d953e483f75dfd45db36fcbda8978f903cbdc12e /make/build.xml | |
parent | db69db1df249c69c996a35e565595e0d8d2d7856 (diff) | |
parent | d4b189bb12ec18e2e3893a7e83074b06b09f2605 (diff) |
Merge branch 'master' of github.com:mbien/gluegen
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml index 3284d19..3301125 100755 --- a/make/build.xml +++ b/make/build.xml @@ -425,27 +425,45 @@ --> <target name="pre-build"> + <!-- Int*Maps --> <antcall target="create-map" inheritrefs="true"> + <param name="map.src" value="IntIntHashMap"/> <param name="map.name" value="IntObjectHashMap"/> <param name="map.value" value="Object"/> <param name="map.null" value="null"/> </antcall> <antcall target="create-map" inheritrefs="true"> + <param name="map.src" value="IntIntHashMap"/> <param name="map.name" value="IntLongHashMap"/> <param name="map.value" value="long"/> <param name="map.null" value="0"/> </antcall> + <!-- Long*Maps --> + <antcall target="create-map" inheritrefs="true"> + <param name="map.src" value="LongIntHashMap"/> + <param name="map.name" value="LongObjectHashMap"/> + <param name="map.value" value="Object"/> + <param name="map.null" value="null"/> + </antcall> + + <antcall target="create-map" inheritrefs="true"> + <param name="map.src" value="LongIntHashMap"/> + <param name="map.name" value="LongLongHashMap"/> + <param name="map.value" value="long"/> + <param name="map.null" value="0"/> + </antcall> + </target> <target name="create-map"> <!-- substitutes certain token in IntIntHashmap to create new primitive HasmMap--> - <copy file="${src.java}/com/jogamp/common/util/IntIntHashMap.java" + <copy file="${src.java}/com/jogamp/common/util/${map.src}.java" tofile="${src.generated.java}/com/jogamp/common/util/${map.name}.java" overwrite="true"> <filterchain> - <replaceregex pattern="IntIntHashMap" replace="${map.name}"/> - <replaceregex pattern="@see ${map.name}" replace="@see IntIntHashMap"/> + <replaceregex pattern="${map.src}" replace="${map.name}"/> + <replaceregex pattern="@see ${map.name}" replace="@see ${map.src}"/> <replaceregex pattern="/\*value\*/int/\*value\*/" replace="${map.value}"/> <replaceregex pattern="/\*null\*/0/\*null\*/" replace="${map.null}"/> </filterchain> |