@@ -0,0 +1,1964 @@
+/*%0A * Copyright 2016 DiffPlug%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.diffplug.gradle.eclipserunner;%0A%0Aimport java.io.IOException;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.junit.Test;%0A%0Aimport com.diffplug.gradle.GradleIntegrationTest;%0A%0Apublic class EquinoxLaunchPluginTest extends GradleIntegrationTest %7B%0A%09@Test%0A%09public void simpleTestCase() throws IOException, InterruptedException %7B%0A%09%09write(%22build.gradle%22,%0A%09%09%09%09%22plugins %7B%22,%0A%09%09%09%09%22    id 'com.diffplug.gradle.equinoxlaunch'%22,%0A%09%09%09%09%22%7D%22,%0A%09%09%09%09%22apply plugin: 'java'%22,%0A%09%09%09%09%22repositories %7B mavenCentral() %7D%22,%0A%09%09%09%09%22equinoxLaunch %7B%22,%0A%09%09%09%09%22    // creates an EquinoxLaunchSetupTask named 'headlessAppSetup'%22,%0A%09%09%09%09%22    headlessAppSetup %7B%22,%0A%09%09%09%09%22        source.addThisProject()%22,%0A%09%09%09%09%22        source.addMaven('com.google.guava:guava:17.0')%22,%0A%09%09%09%09%22        source.addMaven('com.google.guava:guava:18.0')%22,%0A%09%09%09%09%22        // creates an EquinoxLaunchTask named 'headlessApp' which depends on 'headlessAppSetup'%22,%0A%09%09%09%09%22        launchTask 'headlessApp', %7B%22,%0A%09%09%09%09%22            it.args = %5B'-consoleLog', '-application', 'com.diffplug.rcpdemo.headlessapp', 'file', 'test'%5D%22,%0A%09%09%09%09%22        %7D%22,%0A%09%09%09%09%22    %7D%22,%0A%09%09%09%09%22%7D%22);%0A%09%09// Not as good as asserting a complete success, but at least it asserts%0A%09%09// that we don't duplicate the error in #92%0A%09%09Assertions.assertThat(%0A%09%09%09%09gradleRunner().withArguments(%22headlessApp%22)%0A%09%09%09%09%09%09.buildAndFail().getOutput())%0A%09%09%09%09.contains(%22org.eclipse.osgi is required%22);%0A%09%7D%0A%7D%0A

Add a test to reproduce #92.