<commit_before>Launcher script for java applications, compatible with:

http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Assumes the following layout:

/bin/<scripts>
/lib/main.jar
/README.txt

The application executable code needs to be packaged into a single executable main.jar and placed in the lib directory of the install location. The jar needs to be self-contained or include a class-path directive with the location of dependent jar files.

This artifact can be used in combination with the assembly-descriptor project to obtain the desired layout. These are the steps required:

1. Add the following dependency to the project pom.xml:

<dependency>
    <groupId>io.airlift</groupId>
    <artifactId>launcher</artifactId>
    <version>{version}</version>
    <classifier>bin</classifier>
    <type>tar.gz</type>
</dependency>

2. Add the following plugins to the project pom.xml:

<plugin>
   <artifactId>maven-assembly-plugin</artifactId>
   <version>2.2-beta-5</version>
   <configuration>
      <descriptorRefs>
         <descriptorRef>distribution</descriptorRef>
      </descriptorRefs>
   </configuration>
   <dependencies>
      <dependency>
         <groupId>io.airlift</groupId>
         <artifactId>distribution-assembly-descriptor</artifactId>
         <version>{version}</version>
      </dependency>
   </dependencies>

   <executions>
      <execution>
         <id>package</id>
         <phase>package</phase>
         <goals>
            <goal>single</goal>
         </goals>
      </execution>
   </executions>
</plugin>


<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <configuration>
      <archive>
         <manifest>
            <mainClass>...</mainClass>   
            <addClasspath>true</addClasspath>
         </manifest>
      </archive>
   </configuration>
</plugin>

Don't forget to fill in the fully qualified name of the main class.<commit_msg>Use correct artifact in launcher README<commit_after>Launcher script for java applications, compatible with:

http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Assumes the following layout:

/bin/<scripts>
/lib/main.jar
/README.txt

The application executable code needs to be packaged into a single executable main.jar and placed in the lib directory of the install location. The jar needs to be self-contained or include a class-path directive with the location of dependent jar files.

This artifact can be used in combination with the assembly-descriptor project to obtain the desired layout. These are the steps required:

1. Add the following dependency to the project pom.xml:

<dependency>
    <groupId>io.airlift</groupId>
    <artifactId>launcher</artifactId>
    <version>{version}</version>
    <classifier>bin</classifier>
    <type>tar.gz</type>
</dependency>

2. Add the following plugins to the project pom.xml:

<plugin>
   <artifactId>maven-assembly-plugin</artifactId>
   <version>2.2-beta-5</version>
   <configuration>
      <descriptorRefs>
         <descriptorRef>distribution</descriptorRef>
      </descriptorRefs>
   </configuration>
   <dependencies>
      <dependency>
         <groupId>io.airlift</groupId>
         <artifactId>packaging</artifactId>
         <version>{version}</version>
      </dependency>
   </dependencies>

   <executions>
      <execution>
         <id>package</id>
         <phase>package</phase>
         <goals>
            <goal>single</goal>
         </goals>
      </execution>
   </executions>
</plugin>


<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <configuration>
      <archive>
         <manifest>
            <mainClass>...</mainClass>   
            <addClasspath>true</addClasspath>
         </manifest>
      </archive>
   </configuration>
</plugin>

Don't forget to fill in the fully qualified name of the main class.
{'fraction_non_alphanumeric': 0.11208846443830107, 'fraction_numerical': 0.004021110831867303, 'mean_word_length': 3.128630705394191, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7178156', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1115, 'n_words': 308}