ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46480] New: Running SQL Task inside Maven Ant-Run prevents logging for subsequent tasks
Date Mon, 05 Jan 2009 20:41:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46480

           Summary: Running SQL Task inside Maven Ant-Run prevents logging
                    for subsequent tasks
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: brian.bonner@paraware.com


This used to work with version 1.6.5.

I'm using Maven 2.0.9.  When I use the ant-run plugin, it used to log tasks
after an SQL task was specified without any problem.  Upgrading to 1.7.0 or
1.7.1 breaks this functionality.

<profiles>
                <profile>
                        <id>createdb</id>
                        <build>
                                <plugins>
                                        <plugin>
                                               
<groupId>org.apache.maven.plugins</groupId>
                                               
<artifactId>maven-antrun-plugin</artifactId>
                                                <version>1.3</version>
                                                <configuration>
                                                        <tasks>
                                                                <echo>test
before sql</echo>
                                                                <sql
driver="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:XE"
userid="test" password="test" autocommit="false" delimiter=";"
onerror="continue" >
                                                                       
<transaction
                                                                               
src="${basedir}/ddl/test.dev.sql" />
                                                                </sql>
<echo>test after sql</echo>
                                                        </tasks>
                                                </configuration>
                                                <executions>
                                                        <execution>
                                                                <id>create
database</id>
                                                               
<phase>install</phase>
                                                                <goals>
                                                                       
<goal>run</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                                <dependencies>
                                                        <dependency>
                                                               
<groupId>ojdbc</groupId>
                                                               
<artifactId>ojdbc</artifactId>
                                                               
<version>1.4</version>
                                                        </dependency>
                                                </dependencies>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>

With 1.6.5, I see this:

[INFO] Executing tasks
     [echo] test before sql
      [sql] Executing file:
C:\work\workspace\OptimizerWebData\sql\01_optmzr_pro
d.sql
      [sql] 4252 of 4252 SQL statements executed successfully
     [echo] test after sql

With 1.7.1, I see this:

[INFO] Executing tasks
     [echo] test before sql
      [sql] Executing file:
C:\work\workspace\OptimizerWebData\sql\01_optmzr_pro
d.sql
      [sql] 4252 of 4252 SQL statements executed successfully
     [echo] test after sql


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message