3 Replies Latest reply on Jan 22, 2008 2:07 PM by Arbi Sookazian

    @debug@ - what does this do exactly?

    Arbi Sookazian Master

      Not understanding the @...@ syntax below. Plz explain... thx.

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
       "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
       <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>

        • 1. Re: @debug@ - what does this do exactly?
          Jay Balunas Master

          That is just a replacement key for the build script. There is a property in the build script who's value will replace the @debug@.

          so there is a property called "debug" set to true - then when the project is built the file in the war/ear/etc... will be debug="true"

          • 2. Re: @debug@ - what does this do exactly?
            Max Rydahl Andersen Master

            it is not just for the build script - it is also done by runtime by seam to replace it with values from component.properties

            this is what makes it possible for us in jboss tools not to have additional build step and multiple duplicate files to support both test and deployment runs.

            • 3. Re: @debug@ - what does this do exactly?
              Arbi Sookazian Master

              I'm seeing the following snippet at the top of my build.xml:

              <property name="profile" value="dev" />
              <property file="build-${profile}.properties" />

              component.properties (runtime):

              jndiPattern \#{ejbName}/local
              debug true

              build-dev.properties (buildtime):


              So I guess it makes sense now. The @...@ is basically a variable that is plugged in from the *.properties files above at different times.

              cool, thx.

              The explanation in the Seam 2.0.0.GA ref pdf can be more specific: "The funny @ symbols are there because our Ant build script puts the correct JNDI pattern in when we deploy the application." - pg. 7