mirror of https://github.com/apache/maven.git
o Deleted test (support for BeanShell-based plugins is going to be dropped so no need to bother with that)
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@702545 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a36a4f7b7d
commit
6da6ca46eb
|
@ -267,9 +267,6 @@ MavenITmng3645POMSyntaxErrorTest
|
||||||
// suite.addTestSuite( MavenITmng3284UsingCachedPluginsTest.class );
|
// suite.addTestSuite( MavenITmng3284UsingCachedPluginsTest.class );
|
||||||
// suite.addTestSuite( MavenITmng3530DynamicPOMInterpolationTest.class );
|
// suite.addTestSuite( MavenITmng3530DynamicPOMInterpolationTest.class );
|
||||||
|
|
||||||
// this test is flakey on windows and isn't a test of the core.
|
|
||||||
// suite.addTestSuite( MavenIT0020Test.class );
|
|
||||||
|
|
||||||
// -- not passing for 2.0.7 either, looks to be 2.1+ ?
|
// -- not passing for 2.0.7 either, looks to be 2.1+ ?
|
||||||
// suite.addTestSuite( MavenIT0120EjbClientDependency.class );
|
// suite.addTestSuite( MavenIT0120EjbClientDependency.class );
|
||||||
|
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
package org.apache.maven.it;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import org.apache.maven.it.Verifier;
|
|
||||||
import org.apache.maven.it.util.ResourceExtractor;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class MavenIT0020Test
|
|
||||||
extends AbstractMavenIntegrationTestCase
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test beanshell mojo support.
|
|
||||||
*/
|
|
||||||
public void testit0020()
|
|
||||||
throws Exception
|
|
||||||
{
|
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0020" );
|
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.plugins", "maven-it-it0020", "1.0-SNAPSHOT", "maven-plugin" );
|
|
||||||
List goals = Arrays.asList( new String[]{"install"} );
|
|
||||||
verifier.executeGoals( goals );
|
|
||||||
|
|
||||||
verifier = new Verifier( testDir.getAbsolutePath() );
|
|
||||||
goals = Arrays.asList( new String[]{"org.apache.maven.its.it0020:maven-it-it0020:it0020"} );
|
|
||||||
verifier.executeGoals( goals );
|
|
||||||
verifier.assertFilePresent( "target/out.txt" );
|
|
||||||
verifier.verifyErrorFreeLog();
|
|
||||||
verifier.resetStreams();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<name>Maven Integration Test :: it0020</name>
|
|
||||||
<groupId>org.apache.maven.its.it0020</groupId>
|
|
||||||
<artifactId>maven-it-it0020</artifactId>
|
|
||||||
<description>Test beanshell mojo support.</description>
|
|
||||||
<packaging>maven-plugin</packaging>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-script-beanshell</artifactId>
|
|
||||||
<version>2.0</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-plugin-tools-beanshell</artifactId>
|
|
||||||
<version>2.0</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/scripts</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.bsh</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,29 +0,0 @@
|
||||||
/**
|
|
||||||
* Beanshell mojo integration test.
|
|
||||||
* @goal it0020
|
|
||||||
*/
|
|
||||||
|
|
||||||
import org.apache.maven.plugin.Mojo;
|
|
||||||
import org.apache.maven.script.beanshell.BeanshellMojoAdapter;
|
|
||||||
|
|
||||||
execute()
|
|
||||||
{
|
|
||||||
logger.info( "Executing it0020..." );
|
|
||||||
print( "info level?" );
|
|
||||||
outDir.mkdirs();
|
|
||||||
org.codehaus.plexus.util.FileUtils.fileWrite( outDir.getAbsolutePath() + "/out.txt", "This is a Beanshell test" );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Output directory for files.
|
|
||||||
*
|
|
||||||
* @parameter expression="${project.build.directory}" type="java.io.File"
|
|
||||||
* @required
|
|
||||||
*/
|
|
||||||
setOutDir( file )
|
|
||||||
{
|
|
||||||
outDir = file;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new BeanshellMojoAdapter( (Mojo) this, this.interpreter );
|
|
||||||
|
|
Loading…
Reference in New Issue