~russel/gant/trunk

« back to all changes in this revision

Viewing changes to src/test/groovy/org/codehaus/gant/ant/tests/basedir.gant

  • Committer: Russel Winder
  • Date: 2010-04-05 19:18:32 UTC
  • Revision ID: git-v1:51134388f223d6e4bc983bbf209bb572df68f40d
In order for the Gant Ant task tests that spawn an Ant instance to run successfully, the version of Ant used must be the same as the Ant jar used by the Gradle classpath.  To date the tests have worked successfully when run locally by RW but have been failing on Codehaus Bamboo.  The chosen solution is to partition the tests so that only those tests that are not spawning an Ant instance are run as unit tests and those tests that do run an Ant instance are categorized as integration tests and not run as part of continuous integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//  Gant -- A Groovy way of scripting Ant tasks.
2
 
//
3
 
//  Copyright © 2008 Russel Winder
4
 
//
5
 
//  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
6
 
//  compliance with the License. You may obtain a copy of the License at
7
 
//
8
 
//    http://www.apache.org/licenses/LICENSE-2.0
9
 
//
10
 
//  Unless required by applicable law or agreed to in writing, software distributed under the License is
11
 
//  distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12
 
//  implied. See the License for the specific language governing permissions and limitations under the
13
 
//  License.
14
 
 
15
 
//  This test results from emails by Chris Miles on the Groovy Developer email list.  cf.  GANT-50.
16
 
 
17
 
target ( 'default' : '' ) {
18
 
  println ( "basedir::gant basedir=${ant.project.properties.basedir}" )
19
 
}