[
https://issues.apache.org/jira/browse/VELOCITY-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna resolved VELOCITY-771.
-----------------------------------
Resolution: Invalid
That book is seven years old, referencing Velocity 1.3. Our build has improved
much since. Now you just neeed a JDBC-including jar on the classpath when you
build with the ant jar or ant jar-dep targets. Also, you can always try "ant
-projecthelp" to see what targets are available.
Next time, just ask on the [email protected] list before filing a bug
report. You'll usually get a quicker answer that way.
> Error when creation jar-J2EE with ant build.
> --------------------------------------------
>
> Key: VELOCITY-771
> URL: https://issues.apache.org/jira/browse/VELOCITY-771
> Project: Velocity
> Issue Type: Bug
> Affects Versions: 1.6.4
> Reporter: Ilia Prizker
>
> Can't build J2EE jar for loading templates from database,
> with command:
> ant jar-J2EE
> this is the error:
> BUILD FAILED
> Target "jar-J2EE" does not exist in the project "Velocity".
> ==========================================================
> from
> https://www.hasustorm.com/books/English/John.Wiley.And.Sons.Mastering.Apache.Velocity.eBook-KB.pdf
> The DataSource resource loader, implemented by Velocity's
> DataSourceResourceLoader
> class, obtains its resources via physical data source connections
> obtained through a Java DataSource object. An obvious example is a case
> where Velocity templates and related resources are obtained from a relational
> database. This resource loader uses all of the resource loader properties,
> except
> for resource.loader.path. It also supports several other properties that are
> unique to this type of loader. For more information regarding these
> properties,
> see the Velocity's API documentation for its DataSourceResourceLoader class.
> This resource loader requires J2EE and is not included in the standard
> Velocity
> build.
> jar-J2EEāThis build target compiles a complete Velocity JAR just as in the
> case of the jar build target, but it also includes the J2EE JAR file. The
> build
> target requires a copy of j2ee.jar in the /build/lib directory or a link. The
> command line is:
> ant jar-J2EE
> ==========================================================
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]