You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Dan Turkenkopf (JIRA)" <ib...@incubator.apache.org> on 2008/10/07 20:14:44 UTC
[jira] Created: (IBATIS-542) Ibator will not build from trunk with
Ant > 1.6
Ibator will not build from trunk with Ant > 1.6
-----------------------------------------------
Key: IBATIS-542
URL: https://issues.apache.org/jira/browse/IBATIS-542
Project: iBatis for Java
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.4
Environment: Windows XP SP3
Ant 1.7.1
Reporter: Dan Turkenkopf
Attachments: ant_version.patch
Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (IBATIS-542) Ibator will not build from trunk with
Ant > 1.6
Posted by "Jeff Butler (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Butler closed IBATIS-542.
------------------------------
Resolution: Fixed
Fixed as described in SVN.
> Ibator will not build from trunk with Ant > 1.6
> -----------------------------------------------
>
> Key: IBATIS-542
> URL: https://issues.apache.org/jira/browse/IBATIS-542
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.3.4
> Environment: Windows XP SP3
> Ant 1.7.1
> Reporter: Dan Turkenkopf
> Attachments: ant_version.patch
>
>
> Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
> This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
> I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
> Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-542) Ibator will not build from trunk
with Ant > 1.6
Posted by "Dan Turkenkopf (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638101#action_12638101 ]
Dan Turkenkopf commented on IBATIS-542:
---------------------------------------
I'm not sure I follow how the whole process will work. That is, I'm missing what you'd do to ensure step 3.
Unless you include a full ant install into the devlib, you still need an ANT_HOME to get the ANT_HOME/bin/ant command, right?
At that point, it will load whatever version of ant is in ANT_HOME which may or may not conflict with the ant.jar in /devlib. Once it gets loaded, you've got the potential for conflicts. And I'm not sure how to stop the ANT_HOME/lib/ant.jar from being loaded.
I tried putting the 1.7.0 ant.jar into /devlib and made sure that the build.xml referenced ../devlib/ant.jar. I set my ANT_HOME pointing a 1.6.5 version and tried to run the build. It failed immediately with this error:
Invalid implementation version between Ant core and Ant optional tasks.
core : 1.7.0
optional: 1.6.5
If I make the change suggested in the issue (use ${ant.home}/lib and remove the ant.jar from /devlib), I can build with either version of Ant.
I haven't looked into how iBATIS handles the build, so I might be overlooking something though.
> Ibator will not build from trunk with Ant > 1.6
> -----------------------------------------------
>
> Key: IBATIS-542
> URL: https://issues.apache.org/jira/browse/IBATIS-542
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.3.4
> Environment: Windows XP SP3
> Ant 1.7.1
> Reporter: Dan Turkenkopf
> Attachments: ant_version.patch
>
>
> Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
> This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
> I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
> Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-542) Ibator will not build from trunk
with Ant > 1.6
Posted by "Dan Turkenkopf (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638110#action_12638110 ]
Dan Turkenkopf commented on IBATIS-542:
---------------------------------------
Gotcha. That makes sense.
Sounds like a plan to me then.
Thanks.
> Ibator will not build from trunk with Ant > 1.6
> -----------------------------------------------
>
> Key: IBATIS-542
> URL: https://issues.apache.org/jira/browse/IBATIS-542
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.3.4
> Environment: Windows XP SP3
> Ant 1.7.1
> Reporter: Dan Turkenkopf
> Attachments: ant_version.patch
>
>
> Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
> This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
> I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
> Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-542) Ibator will not build from trunk
with Ant > 1.6
Posted by "Jeff Butler (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637963#action_12637963 ]
Jeff Butler commented on IBATIS-542:
------------------------------------
I've had this frustration myself! You've prompted me to get around to doing something about it.
I'm going to fix this a bit differently than you suggest. I'll do the following:
1. Upgrade to Ant 1.7.1
2. Keep the Ant jars in \devlib - because Ant is required for the compile (ibator includes an Ant task)
3. Change the build process so that it always uses the Ant JARs in \devlib.
This should ensure that ibator builds successfully regardless of whether another version of Ant is already on your machine. This is closer to the way iBATIS builds.
Sound good?
> Ibator will not build from trunk with Ant > 1.6
> -----------------------------------------------
>
> Key: IBATIS-542
> URL: https://issues.apache.org/jira/browse/IBATIS-542
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.3.4
> Environment: Windows XP SP3
> Ant 1.7.1
> Reporter: Dan Turkenkopf
> Attachments: ant_version.patch
>
>
> Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
> This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
> I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
> Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-542) Ibator will not build from trunk
with Ant > 1.6
Posted by "Jeff Butler (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638104#action_12638104 ]
Jeff Butler commented on IBATIS-542:
------------------------------------
I've got it working in my environment now. The basic idea is that you use the Ant Java launcher - NOT the supplied scripts that come with Ant.
The Ant manual has a section about running Ant from Java - that's what I used.
You can look at the ant.bat file from the iBATIS build for the basic idea - but that uses an older method to launch Ant.
> Ibator will not build from trunk with Ant > 1.6
> -----------------------------------------------
>
> Key: IBATIS-542
> URL: https://issues.apache.org/jira/browse/IBATIS-542
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.3.4
> Environment: Windows XP SP3
> Ant 1.7.1
> Reporter: Dan Turkenkopf
> Attachments: ant_version.patch
>
>
> Ibator includes an ant.jar in the /core/devlib directory that is directly referenced by the build.xml file.
> This ant.jar is version 1.6, which causes conflicts when ANT_HOME is version 1.7 or 1.7.1. (cannot find the method Resources.dieOnCircularReference).
> I've attached a patch that loads the ant.jar from ANT_HOME/lib instead of /core/devlib.
> Also, the ant.jar should be removed from /core/devlib so as to avoid any possible conflicts or warnings.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.