diff options
author | Michael Bien <[email protected]> | 2010-04-15 00:00:46 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-04-15 00:00:46 +0200 |
commit | b33315789461b2db2406e9f91a828b4d899997a5 (patch) | |
tree | c06ccb4febd6c6598d2094a68d11e9787434456c /make/build.xml | |
parent | 74e0505c621c4573306675e0449e6dc73996eba1 (diff) |
merged LongInt with IntIntHashMap.
IntIntHashMap is now the single template used for all other maps.
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/make/build.xml b/make/build.xml index 3301125..09bdd7a 100755 --- a/make/build.xml +++ b/make/build.xml @@ -427,30 +427,37 @@ <!-- Int*Maps --> <antcall target="create-map" inheritrefs="true"> - <param name="map.src" value="IntIntHashMap"/> <param name="map.name" value="IntObjectHashMap"/> + <param name="map.key" value="int"/> <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.key" value="int"/> <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.key" value="long"/> + <param name="map.value" value="Object"/> + <param name="map.null" value="null"/> + </antcall> + + <antcall target="create-map" inheritrefs="true"> + <param name="map.name" value="LongIntHashMap"/> + <param name="map.key" value="long"/> <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.key" value="long"/> <param name="map.value" value="long"/> <param name="map.null" value="0"/> </antcall> @@ -459,12 +466,13 @@ <target name="create-map"> <!-- substitutes certain token in IntIntHashmap to create new primitive HasmMap--> - <copy file="${src.java}/com/jogamp/common/util/${map.src}.java" + <copy file="${src.java}/com/jogamp/common/util/IntIntHashMap.java" tofile="${src.generated.java}/com/jogamp/common/util/${map.name}.java" overwrite="true"> <filterchain> - <replaceregex pattern="${map.src}" replace="${map.name}"/> - <replaceregex pattern="@see ${map.name}" replace="@see ${map.src}"/> + <replaceregex pattern="IntIntHashMap" replace="${map.name}"/> + <replaceregex pattern="@see ${map.name}" replace="@see IntIntHashMap"/> <replaceregex pattern="/\*value\*/int/\*value\*/" replace="${map.value}"/> + <replaceregex pattern="/\*key\*/int/\*key\*/" replace="${map.key}"/> <replaceregex pattern="/\*null\*/0/\*null\*/" replace="${map.null}"/> </filterchain> <!-- no clue why we have to do this twice... otherwise it will only replace one token per line --> |