Skip to content

Commit

Permalink
[WINDUP-3407]-WINDUP Themed Release (#1497)
Browse files Browse the repository at this point in the history
* Add Windup theme and make it the default one

* Replace some lines refering to MTA

* Use always windup-cli
  • Loading branch information
carlosthe19916 committed Jul 26, 2022
1 parent efb5fa3 commit 47e01f4
Show file tree
Hide file tree
Showing 13 changed files with 236 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.asciidoc
Expand Up @@ -26,7 +26,7 @@ After that, follow the link:https://github.com/windup/windup/wiki/Execute[User G

Windup distribution contains a sample file to try Windup with. Try the following command in a console:

bin/mta-cli --target eap7 --input samples/jee-example-app-1.0.0.ear
bin/windup-cli --target eap7 --input samples/jee-example-app-1.0.0.ear

This will create a report next to the scanned archive:

Expand Down
Expand Up @@ -92,7 +92,7 @@ public static void main(final String[] args) {
runtimeLabelsDir.mkdirs();
}

final String defaultLog = new File(getUserWindupDir(), "log/mta.log").getAbsolutePath();
final String defaultLog = new File(getUserWindupDir(), "log/windup.log").getAbsolutePath();
final String logDir = System.getProperty("org.jboss.forge.log.file", defaultLog);

System.setProperty("org.jboss.forge.log.file", logDir);
Expand Down Expand Up @@ -232,7 +232,7 @@ public static File getUserWindupDir() {
Path path = new File("").toPath();
return path.toFile();
}
return Paths.get(userHome).resolve(".mta").toFile();
return Paths.get(userHome).resolve(".windup").toFile();
}

private static File getUserAddonsDir() {
Expand Down
Expand Up @@ -14,7 +14,7 @@ public CommandResult execute() {
Theme theme = ThemeProvider.getInstance().getTheme();

StringBuilder sb = new StringBuilder();
sb.append("Usage: " + theme.getCliName() + " [OPTION]... PARAMETER ... ").append(System.lineSeparator());
sb.append("Usage: windup-cli [OPTION]... PARAMETER ... ").append(System.lineSeparator());
sb.append("Extendable migration analysis, at your fingertips. ").append(System.lineSeparator());
sb.append(System.lineSeparator());

Expand Down
Expand Up @@ -281,7 +281,7 @@ private void runWindup(List<String> arguments) {
+ " Access it at this URL: " + indexHtmlPath.toUri());
} else {
System.out.println("Generating reports were disabled by option --skipReports");
System.out.println("If using that option was unintentional, please run MTA again to generate reports.");
System.out.println("If using that option was unintentional, please run Windup again to generate reports.");
}
} catch (Exception e) {
System.err.println("Execution failed due to: " + e.getMessage());
Expand Down
24 changes: 23 additions & 1 deletion pom.xml
Expand Up @@ -572,12 +572,34 @@
</profile>

<profile>
<id>mta</id>
<id>windup</id>
<activation>
<property>
<name>!downstream</name>
</property>
</activation>
<properties>
<distribution.brand.name>Windup Migration Toolkit for Applications</distribution.brand.name>
<distribution.brand.name-acronym>WINDUP</distribution.brand.name-acronym>
<distribution.brand.documentation.url>https://github.com/windup/windup</distribution.brand.documentation.url>
<distribution.brand.cli-name>windup-cli</distribution.brand.cli-name>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources-windup</directory>
</resource>
</resources>
</build>
</profile>
<profile>
<id>mta</id>
<activation>
<property>
<name>downstream</name>
<value>mta</value>
</property>
</activation>
<properties>
<distribution.brand.name>Migration Toolkit for Applications by Red Hat (MTA)</distribution.brand.name>
<distribution.brand.name-acronym>MTA</distribution.brand.name-acronym>
Expand Down
Expand Up @@ -12,14 +12,18 @@
</dl>

<dl class="dl-horizontal">
<#if reportModel.relatedResources.windupAbout.windupRuntimeVersion?has_content>
<dt>Generated By</dt>
<dd>${getWindupBrandName()} ${reportModel.relatedResources.windupAbout.windupRuntimeVersion}</dd>
</#if>
<dt>GitHub Source</dt>
<dd><a href="https://github.com/windup/windup">https://github.com/windup/windup</a></dd>

<dt>Website</dt>
<dd><a href="https://developers.redhat.com/products/mta/overview/">https://developers.redhat.com/products/mta/overview/</a></dd>
<dt>GitHub Wiki</dt>
<dd><a href="https://github.com/windup/windup/wiki">https://github.com/windup/windup/wiki</a></dd>

<dt>Documentation</dt>
<dd><a href="https://access.redhat.com/documentation/en-us/migration_toolkit_for_applications/">https://access.redhat.com/documentation/en-us/migration_toolkit_for_applications/</a></dd>
<dt>Discussion Forum</dt>
<dd><a href="https://developer.jboss.org/en/windup?view=discussions">https://developer.jboss.org/en/windup</a></dd>

<dt>Mailing List</dt>
<dd><a href="https://lists.jboss.org/mailman/listinfo/windup-dev">https://lists.jboss.org/mailman/listinfo/windup-dev</a></dd>

<dt>Issues Tracking</dt>
<dd><a href="https://issues.jboss.org/browse/WINDUP">https://issues.jboss.org/browse/WINDUP</a></dd>
</dl>

0 comments on commit 47e01f4

Please sign in to comment.