Skip to content

Commit

Permalink
Duplicate test resource
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 16, 2023
1 parent 4809950 commit 6f8b899
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
1 change: 0 additions & 1 deletion watchdog-agent/src/test/resources/load_jdk_class

This file was deleted.

43 changes: 43 additions & 0 deletions watchdog-agent/src/test/resources/load_jdk_class/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>jdk_class</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<archive>
<manifest>
<mainClass>com.sun.CustomClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.sun;

public class CustomClass {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}

0 comments on commit 6f8b899

Please sign in to comment.