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
CompilationBuilder builder = ...; | |
builder.setMustCompile(jarPath -> jarPath.matches("^.*softsite.*$") && !jarPath.matches("^.*tc-compiler-help.*$")); |
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
new CompilationBuilder() | |
.setKey(tcKey) | |
.setTotalCrossHome(tcHome) | |
.setPlatformsTarget(AvailablePlatforms.WIN32) | |
.setMustCompile(s -> s.contains("totalcross-functional-toolbox")) | |
.setMainTarget(App.class) | |
.singlePackage() | |
.build(); |
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
package br.com.softsite.streamsupport; | |
... | |
import java.io.Closeable; | |
import java.io.IOException; | |
import java.util.function.Supplier; | |
import com.totalcross.util.compile.CompilationBuilder; |
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
mvn clean package exec:java -Dexec.mainClass=br.com.softsite.streamsupport.CompileApp |
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
image: maven:3.3.9-jdk-8 | |
variables: | |
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true -Xmx2048m -Xms1024m" | |
MAVEN_CLI_OPTS: "-P gitlab,!dev -DskipDefaultProfile -Dgitlabci -s .m2/settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" | |
stages: | |
- build-test-nucleo | |
- build-apps | |
- archive |
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
#!/bin/bash | |
detect-version() { | |
informed_version="$1" | |
desired_version="$1" | |
case "$desired_version" in | |
*-SNAPSHOT) | |
desired_version=`curl -s https://maven.totalcross.com/artifactory/repo1/com/totalcross/totalcross-sdk/${informed_version}/maven-metadata.xml | | |
grep value | | |
head -n1 | |
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
#!/bin/bash | |
get-major-minor() { | |
sed -E 's/^([^.*]\.[^.]*)\..*$/\1/' <<<"$1" | |
} | |
amazon-tc-url() { | |
version="$1" | |
major_minor=`get-major-minor "$version"` |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<metadata modelVersion="1.1.0"> | |
<groupId>com.totalcross</groupId> | |
<artifactId>totalcross-sdk</artifactId> | |
<version>4.2.0-SNAPSHOT</version> | |
<versioning> | |
<snapshot> | |
<timestamp>20180924.083450</timestamp> | |
<buildNumber>13</buildNumber> | |
</snapshot> |
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
#!/bin/bash | |
curl -s https://maven.totalcross.com/artifactory/repo1/com/totalcross/totalcross-sdk/${informed_version}/maven-metadata.xml | | |
grep value | | |
head -n1 | | |
sed -E 's/^.*>([^<]*)<.*$/\1/' |
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
archive-mobile: | |
<<: *maven-app-template | |
stage: archive | |
dependencies: | |
- build-mobile | |
cache: | |
paths: | |
- totalcross-cache | |
- .m2/repository | |
key: tc-download |
OlderNewer