3 Replies Latest reply on Jan 17, 2003 11:53 AM by lorensrosen

    Template Basics

    zaaba

      I am trying to get started with the Getting Started docs but have hit a wall. It says to start a new project, copy the template to another directory etc...

      What is a template, and where do I find it (There is no information in the docs on this)?

      I tried to search for .ant.properties file which is supposed to be in a template but nothing.

      Please help

      Scott

        • 1. Re: Template Basics
          lorensrosen

          Hmm, taking a look I see the Getting Started doc isn't explicit about this. Here's what to do:
          go to where you got the document (http://www.jboss.org/docs/#free-30x)
          right below the link to download the document is a link to "Download Template and Examples".

          (The link is to
          http://prdownloads.sourceforge.net/jboss/JBoss.3.0TemplateAndExamples.zip
          )

          Download this and unzip it. You should get a directory structure like this
          JBoss.3.0TemplateAndExamples
          cmp2
          template
          transaction
          The template referred to in the docs is (obviously) the template directory here. Copy this somewhere and modify it.

          Hope this helps -- Loren

          • 2. Re: Template Basics
            zaaba

            OK I now have those directories, and have copied the templates directory somewhere else. I have edited .ant.properties.example with JBOSS_HOME and XCDOCLET_HOME. I have tried to rename this file to .ant.properties but Explorer won't allow it. The closest I can get is .ant.properties.txt by opening in Notepad and Saving As. (I am presuming you have to rename the file because it says so, and the build.xml refers to it)

            • 3. Re: Template Basics
              lorensrosen

              There was a thread about this over in the forum on the Getting Started doc
              http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ you can rename the file to .ant.properties using the command prompt, even if some other programs won't let you.

              Failing that, I suppose you could modify build.xml to refer to the file by whatever name you fancy.