Skip to content

Commit 7e4b9d8

Browse files
committed
Added creation of a "prolint ready package" proparse.net in the pom.xml
1 parent 67260dd commit 7e4b9d8

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

how_to_build.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
1. Download [ikvm.exe](https://netcologne.dl.sourceforge.net/project/ikvm/ikvm/7.2.4630.5/ikvmbin-7.2.4630.5.zip) and put it in a folder `ikvm` on the root of the repo (add it to ignore list) : this path is reference in the pom.xml
22
2. Build the project : `mvn clean package`
3-
3. the .dll is generated in the output dir
3+
3. the .dll is generated in the output dir
4+
4. you will also find a folder proparse.net next to this repo folder containing all the needed files for prolint

pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
<url>https://github.com/jcaillon/proparse</url>
1111

1212
<properties>
13-
<ikvm>ikvm\bin</ikvm>
13+
<ikvm>${project.basedir}\ikvm\bin</ikvm>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<proparse.net.dir>${project.basedir}\..\proparse.net</proparse.net.dir>
1516
</properties>
1617

1718
<dependencies>
@@ -145,14 +146,19 @@
145146
you can add between <target> and </target> in a
146147
build.xml.
147148
-->
149+
<mkdir dir="${proparse.net.dir}"/>
148150
<exec executable="${ikvm}\ikvmc.exe">
149151
<arg value="-out:${project.build.directory}\proparse.net.dll"/>
150152
<arg value="-version:${project.version}"/>
151-
<arg value="-keyfile:proparse.net.snk"/>
153+
<arg value="-keyfile:${project.basedir}\src\resources\proparse.net.snk"/>
152154
<arg value="-nowarn:0108"/>
153155
<arg value="${project.build.directory}\${project.artifactId}-${project.version}.jar"/>
154156
<arg value="${project.build.directory}\lib\*"/>
155157
</exec>
158+
<copy file="${ikvm}\ikvm.openjdk.core.dll" tofile="${proparse.net.dir}\ikvm.openjdk.core.dll" />
159+
<copy file="${ikvm}\ikvm.runtime.dll" tofile="${proparse.net.dir}\ikvm.runtime.dll" />
160+
<copy file="${project.basedir}\src\resources\assemblies.xml" tofile="${proparse.net.dir}\assemblies.xml" />
161+
<copy file="${project.build.directory}\proparse.net.dll" tofile="${proparse.net.dir}\proparse.net.dll" />
156162
</target>
157163
</configuration>
158164
<goals>

src/resources/assemblies.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<references>
3+
<assembly name="proparse.net, Culture=neutral, PublicKeyToken=cda1b098b1034b24"/>
4+
</references>

0 commit comments

Comments
 (0)