Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</parent>

<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-${platform}</artifactId>
<artifactId>jansi-${platformId}</artifactId>
<version>1.9-SNAPSHOT</version>

<name>${project.artifactId}</name>
Expand All @@ -36,7 +36,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.5</maven.compiler.source>
<hawtjni-version>1.16</hawtjni-version>
<platform>native</platform>
<platformId>native</platformId>
</properties>

<url>http://fusesource.github.io/${forge-project-id}</url>
Expand Down Expand Up @@ -123,7 +123,7 @@
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.fusesource.jansi.${platform}</Automatic-Module-Name>
<Automatic-Module-Name>org.fusesource.jansi.${platformId}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
Expand Down Expand Up @@ -262,6 +262,9 @@
<name>platform</name>
</property>
</activation>
<properties>
<platformId>${platform}-${arch}</platformId>
</properties>
<build>
<plugins>

Expand All @@ -278,7 +281,7 @@
<goal>package-source</goal>
</goals>
<configuration>
<platform>${platform}</platform>
<platform>${platform}/${arch}</platform>
<name>jansi</name>
<classified>false</classified>
<callbacks>false</callbacks>
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Project Links
Building
--------

To build, just run `mvn -Dplatform=${platform} package` where `${platform}` may be `windows32`, `windows64`,
`osx`, `linux32`, `linux64`, `freebsd32`, `freebsd64` or any other platform of your choice.
To build, just run `mvn -Dplatform=${platform} -Darch=${arch} package` where `${platform}` may be `windows32`, `windows64`,
`osx`, `linux32`, `linux64`, `freebsd32`, `freebsd64` or any other platform of your choice,
and `${arch}` is the Java `os.name` for the target architecture, such as `i386` or `amd64`.

Jansi native uses [HawtJNI](http://fusesource.github.io/hawtjni/) to ease JNI management.
See [Platform Build Tools Requirements](http://fusesource.github.io/hawtjni/documentation/developer-guide.html#Platform_Build_Tools_Requirements)
Expand Down