Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[tools] Re-implement sarlc tool with Bootique.
see #843 Signed-off-by: Stéphane Galland <galland@arakhne.org>
- Loading branch information
1 parent
de16e28
commit 6846806
Showing
39 changed files
with
3,605 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<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> | ||
<parent> | ||
<groupId>io.sarl.maven</groupId> | ||
<artifactId>io.sarl.maven.internal</artifactId> | ||
<version>0.8.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>io.sarl.maven.bqextension</artifactId> | ||
<name>Extension of Bootique</name> | ||
<description>Extension of the Bootique API.</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.bootique</groupId> | ||
<artifactId>bootique</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>osgi</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
<configuration> | ||
<sourceDirectories> | ||
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> | ||
</sourceDirectories> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<!-- ======================================= --> | ||
<!-- ==== Release Management === --> | ||
<!-- ======================================= --> | ||
<profiles> | ||
<profile> | ||
<id>maven-release-of-sarl-maven-plugin</id> | ||
<activation> | ||
<property> | ||
<name>performRelease</name> | ||
<value>true</value> | ||
</property> | ||
</activation> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.arakhne.afc.maven</groupId> | ||
<artifactId>tag-replacer</artifactId> | ||
<configuration> | ||
<sources> | ||
<source>${project.basedir}/src/main/java</source> | ||
</sources> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<configuration> | ||
<sourcepath>${project.build.directory}/generated-sources/java</sourcepath> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
50 changes: 50 additions & 0 deletions
50
...nalmaven/io.sarl.maven.bqextension/src/main/java/io/sarl/maven/bqextension/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* $Id$ | ||
* | ||
* SARL is an general-purpose agent programming language. | ||
* More details on http://www.sarl.io | ||
* | ||
* Copyright (C) 2014-2018 the original authors or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.sarl.maven.bqextension; | ||
|
||
/** Main entry point for the SARL batch compiler. | ||
* | ||
* @author $Author: sgalland$ | ||
* @version $FullVersion$ | ||
* @mavengroupid $GroupId$ | ||
* @mavenartifactid $ArtifactId$ | ||
* @since 0.5 | ||
*/ | ||
public final class Constants { | ||
|
||
/** A conversion pattern for the logger. | ||
*/ | ||
public static final String LOGGER_PATTERN = "%-5p %m%n"; //$NON-NLS-1$ | ||
|
||
/** Return code when success. | ||
*/ | ||
public static final int SUCCESS_CODE = 0; | ||
|
||
/** Return code when failure. | ||
*/ | ||
public static final int ERROR_CODE = 255; | ||
|
||
private Constants() { | ||
// | ||
} | ||
|
||
} |
47 changes: 47 additions & 0 deletions
47
...ven/io.sarl.maven.bqextension/src/main/java/io/sarl/maven/bqextension/configs/Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* $Id$ | ||
* | ||
* SARL is an general-purpose agent programming language. | ||
* More details on http://www.sarl.io | ||
* | ||
* Copyright (C) 2014-2018 the original authors or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.sarl.maven.bqextension.configs; | ||
|
||
import io.bootique.annotation.BQConfig; | ||
|
||
/** | ||
* Represents a config that could provide an object representation of itself that | ||
* could be serialized with Yaml exporter. | ||
* | ||
* @author $Author: sgalland$ | ||
* @version $FullVersion$ | ||
* @mavengroupid $GroupId$ | ||
* @mavenartifactid $ArtifactId$ | ||
* @since 0.8 | ||
*/ | ||
@BQConfig("Configuration of the class paths") | ||
public interface Config { | ||
|
||
/** Replies the identifier of the Yaml section. | ||
* | ||
* @return the section name. | ||
*/ | ||
default String getSectionName() { | ||
return Configs.getSectionName(getClass()); | ||
} | ||
|
||
} |
Oops, something went wrong.