...
 
Commits (4)
image: maven:3-jdk-7
image: maven:3-jdk-8
variables:
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
......@@ -12,18 +12,24 @@ cache:
- .m2/repository
stages:
- test
- build
- deploy
- publish
before_script:
- export REVISION="$(curl http://git.patrikdufresne.com/pdsl/maven-scm-version/raw/master/version.sh | bash -)"
- echo "REVISION=$VERSION"
- echo "REVISION=$REVISION"
test:
stage: test
stage: build
script:
- mvn -B -Drevision=${REVISION} clean org.jacoco:jacoco-maven-plugin:prepare-agent install
- mvn -B -Drevision=${REVISION} -Dsonar.host.url=http://sonar.patrikdufresne.com -Dsonar.login=$SONAR_TOKEN clean install
sonar:
stage: build
allow_failure: true
script:
- mvn -B -Drevision=${REVISION} -Dsonar.host.url=http://sonar.patrikdufresne.com -Dsonar.login=$SONAR_TOKEN clean verify sonar:sonar
nexus_deploy:
stage: deploy
......
......@@ -10,13 +10,13 @@ Originally taken from Opal project (https://code.google.com/a/eclipselabs.org/p/
# Preview
## Windows XP
![alt tag](preview_winxp.png)
![alt tag](docs/preview_winxp.png)
## Windows 7
![alt tag](preview_win7.png)
![alt tag](docs/preview_win7.png)
## Gnome 3
![alt tag](preview_gnome3.png)
![alt tag](docs/preview_gnome3.png)
# Usage
For maven project, you need to update you `pom.xml`.
......@@ -38,6 +38,11 @@ For maven project, you need to update you `pom.xml`.
</dependencies>
[...]
```
In you Java code, you may use this widget like other toggle button. You may also take a look at [SwitchButtonTest.java](src/test/java/SwitchButtonTest.java).
```
final SwitchButton button = new SwitchButton(shell, SWT.NONE);
button.setSelection(true);
```
......@@ -106,6 +106,14 @@
<lineEnding>CRLF</lineEnding>
</configuration>
</plugin>
<!-- Need the following to overcome a bug with surefire and java8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
......