Skip to content

Commit

Permalink
ICU-22324 Update BRS task docs
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed Oct 5, 2023
1 parent 1b5542d commit 623cb1a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 13 deletions.
22 changes: 9 additions & 13 deletions docs/processes/release/tasks/healthy-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ demo.
```sh
$ cd icu4j
$ ant jarDemos
$ java -jar icu4jdemos.jar
$ mvn install -am -pl demos -DskipTests -DskipITs
$ mvn exec:exec -pl demos
```
Above command invokes GUI demo applications. As such it has to connect to a
Expand All @@ -561,16 +561,12 @@ ICU4J samples are located in directory <icu4j_root>/samples. Check that:
To check ICU4J samples, you may use the command line to build and then run each:
```sh
$ cd icu4j/samples
$ ant build
# Get the list of main samples to test.
$ grep -r main src/
src/com/ibm/icu/samples/text/dateintervalformat/DateIntervalFormatSample.java
...
# For each sample, execute as follows:
$ java -cp ../icu4j.jar:out/lib/icu4j-samples.jar com.ibm.icu.samples.text.dateintervalformat.DateIntervalFormatSample
$ cd icu4j
$ mvn install -am -pl samples -DskipTests -DskipITs
# Get the list of samples with `main` methods, and execute to test.
$ classes=`grep -r "void main" samples/src/ -l | ruby -lane 'file=$_; m = file.match(/src\/main\/java\/(.*)\.java$/); puts m[1];' | tr '/' '.'`
$ for class in $classes; do echo $class; mvn exec:java -pl samples -Dexec.mainClass="$class"; echo "Press enter to continue"; read; done
```
To use Eclipse, do the following:
Expand All @@ -590,7 +586,7 @@ To use Eclipse, do the following:
For ICU4J,
```sh
$ ant exhaustiveCheck
$ mvn verify -DICU.exhaustive=10
```
For ICU4C, testing with an optimized build will help reduce the elapsed time
Expand Down
21 changes: 21 additions & 0 deletions icu4j/demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<!-- automatically creates the classpath using all project dependencies,
also adding the project build directory -->
<classpath/>
<argument>com.ibm.icu.dev.demo.Launcher</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
5 changes: 5 additions & 0 deletions icu4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,11 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down
4 changes: 4 additions & 0 deletions icu4j/samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 623cb1a

Please sign in to comment.