ICNS Project Root

A pure Java implementation of tools for working with Apple Icon Image format icons.

License

License

GroupId

GroupId

com.github.gino0631
ArtifactId

ArtifactId

icns-root
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

pom
Description

Description

ICNS Project Root
A pure Java implementation of tools for working with Apple Icon Image format icons.
Project URL

Project URL

https://github.com/gino0631/icns
Source Code Management

Source Code Management

https://github.com/gino0631/icns

Download icns-root

Filename Size
icns-root-1.1.pom 5 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.gino0631/icns-root/ -->
<dependency>
    <groupId>com.github.gino0631</groupId>
    <artifactId>icns-root</artifactId>
    <version>1.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.gino0631/icns-root/
implementation 'com.github.gino0631:icns-root:1.1'
// https://jarcasting.com/artifacts/com.github.gino0631/icns-root/
implementation ("com.github.gino0631:icns-root:1.1")
'com.github.gino0631:icns-root:pom:1.1'
<dependency org="com.github.gino0631" name="icns-root" rev="1.1">
  <artifact name="icns-root" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.gino0631', module='icns-root', version='1.1')
)
libraryDependencies += "com.github.gino0631" % "icns-root" % "1.1"
[com.github.gino0631/icns-root "1.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

  • icns-core
  • icns-maven-plugin

ICNS

Build Status Maven Central

A pure Java implementation of tools for working with Apple Icon Image format icons.

Requirements

  • Maven 3
  • Java 8

Usage

The tools consist of a Java library and plugins for build systems (currently, only Maven is supported).

Maven plugin

The first step is to add the plugin to your project:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
        <plugin>
          <groupId>com.github.gino0631</groupId>
          <artifactId>icns-maven-plugin</artifactId>
          <version>...</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.github.gino0631</groupId>
        <artifactId>icns-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>create-macosx-icons</id>
            <phase>generate-resources</phase>
            <goals><goal>icns</goal></goals>
            <configuration>
              <outputFile>${project.build.directory}/product/macosx-x64/Applications/${product.name}.app/Contents/Resources/Main.icns</outputFile>
              <icons>
                <icon>icons/main_window_128.png</icon>
              </icons>
            </configuration>
          </execution>
        </executions>
      </plugin>
    ...
    </plugins>
    ...
  </build>
  ...
</project>

It is necessary to specify icons and outputFile parameters, which define source icon set to use, and an ICNS file to produce.

Standalone library

Add a dependency on com.github.gino0631:icns-core to your project, and use IcnsIcons, IcnsBuilder, and IcnsParser classes.

Versions

Version
1.1
1.0