BAEL-2076: loading resources (#7347)

* commits for BAEL-2076

- Created core-java-io2 module
- added resource loading example code
- added core-java-io2 to tutorials pom.xml

* Committing review changes

- change to try-with-resources
- change the order of main method

* Reformatting try-with-resources

* Moving resources example from core-java-io2 to core-java-io. Removing core-java-io2

* Removing stray core-java-io2 in tutorials pom file.
This commit is contained in:
at508
2019-09-05 17:38:17 -04:00
committed by ashleyfrieze
parent cf2d93b4e7
commit c85be3d29d
2 changed files with 59 additions and 0 deletions

View File

@@ -207,6 +207,21 @@
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.baeldung.resource.MyResourceLoader</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
@@ -274,6 +289,8 @@
<!-- Mime Type Libraries -->
<tika.version>1.18</tika.version>
<jmime-magic.version>0.1.5</jmime-magic.version>
<maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
</properties>
</project>