You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Sachin Patel <sp...@gmail.com> on 2005/09/14 02:52:50 UTC

site generation error

I'm not sure if I was getting this error before, but I just noticed it 
when running ant for the site generation.

C:\geronimo-site>ant
Buildfile: build.xml

site:
     [echo]
     [echo]        #######################################################
     [echo]        #
     [echo]        #  Now using Anakia to transform our XML documentation
     [echo]        #  to HTML.
     [echo]        #
     [echo]        #######################################################
     [echo]
   [anakia] Transforming into: C:\geronimo-site\docs
   [anakia] Input:  devtools\_vti_cnf\index.xml

   [anakia] Error: Content is not allowed in prolog.
   [anakia]        Line: 1 Column: 1

   [anakia] Input:  devtools\index.xml
   [anakia] Output: C:\geronimo-site\docs\devtools\index.html

BUILD SUCCESSFUL
Total time: 1 second

Re: site generation error

Posted by Sachin Patel <sp...@gmail.com>.
Yes, thats exactly what I've done.

(1) To do so, import the site contents as a project in the workspace.  
(You'll need to create a .project file so you can import it.). 
(2) Right click on the project -> Properties --> Builders.
(3) Click New on the Builders page and select Ant Build and click finish.
(4) An Edit launch configuration properties wizard will appear and give 
it a name like "SiteBuilder".
(5) Select the build.xml file from  the project using "Browse Workspace"
(6) Select the base directory using Browse Workspace (simply select you 
imported project)
(7) Optionaly select the refresh tab and enable "Refresh resources upon 
completion"
(8) Then select targets for Manual Build as well as AutoBuild.  Set the 
default target "site".
(9) Hit finish.

Thats it, now make any change to any file in the project, hit save, and 
the site ant goal will automatically run.  You can also granulize this 
by going back into the configuration page and select the Build Options 
to configure to only trigger the ant builder on a particular working set 
(i.e only run when resources in ./xdocs/ are changed).

Hope that that works out for you.

Sachin.

Jacek Laskowski wrote:
> Sachin Patel wrote:
>> Yeah I'll give myself a -1 on that. :)  Using eclipse now.  Works 
>> much better since it automatically triggers the ant builder every save.
>
> That's interesting. Have you set it up specially so that Eclipse 
> triggers the builder? Would you mind to post the steps?
>
> Jacek
>

Re: site generation error

Posted by Jacek Laskowski <jl...@apache.org>.
Sachin Patel wrote:
> Yeah I'll give myself a -1 on that. :)  Using eclipse now.  Works much 
> better since it automatically triggers the ant builder every save.

That's interesting. Have you set it up specially so that Eclipse 
triggers the builder? Would you mind to post the steps?

Jacek

Re: site generation error

Posted by Sachin Patel <sp...@gmail.com>.
Yeah I'll give myself a -1 on that. :)  Using eclipse now.  Works much 
better since it automatically triggers the ant builder every save.

Geir Magnusson Jr. wrote:
> Oh, don't even admit to us that you use FrontPage....
>
> geir
>
> On Sep 13, 2005, at 8:58 PM, Sachin Patel wrote:
>
>> Nevermind, thats file is from a hidden folder that FrontPage is 
>> creating when I import the site.
>> Sachin Patel wrote:
>>
>>> I'm not sure if I was getting this error before, but I just noticed 
>>> it when running ant for the site generation.
>>>
>>> C:\geronimo-site>ant
>>> Buildfile: build.xml
>>>
>>> site:
>>>     [echo]
>>>     [echo]        
>>> #######################################################
>>>     [echo]        #
>>>     [echo]        #  Now using Anakia to transform our XML 
>>> documentation
>>>     [echo]        #  to HTML.
>>>     [echo]        #
>>>     [echo]        
>>> #######################################################
>>>     [echo]
>>>   [anakia] Transforming into: C:\geronimo-site\docs
>>>   [anakia] Input:  devtools\_vti_cnf\index.xml
>>>
>>>   [anakia] Error: Content is not allowed in prolog.
>>>   [anakia]        Line: 1 Column: 1
>>>
>>>   [anakia] Input:  devtools\index.xml
>>>   [anakia] Output: C:\geronimo-site\docs\devtools\index.html
>>>
>>> BUILD SUCCESSFUL
>>> Total time: 1 second
>>>
>>>
>>
>>
>
> --Geir Magnusson Jr                                  +1-203-665-6437
> geirm@apache.org
>
>
>

Re: site generation error

Posted by "Geir Magnusson Jr." <ge...@apache.org>.
Oh, don't even admit to us that you use FrontPage....

geir

On Sep 13, 2005, at 8:58 PM, Sachin Patel wrote:

> Nevermind, thats file is from a hidden folder that FrontPage is  
> creating when I import the site.
> Sachin Patel wrote:
>
>> I'm not sure if I was getting this error before, but I just  
>> noticed it when running ant for the site generation.
>>
>> C:\geronimo-site>ant
>> Buildfile: build.xml
>>
>> site:
>>     [echo]
>>     [echo]         
>> #######################################################
>>     [echo]        #
>>     [echo]        #  Now using Anakia to transform our XML  
>> documentation
>>     [echo]        #  to HTML.
>>     [echo]        #
>>     [echo]         
>> #######################################################
>>     [echo]
>>   [anakia] Transforming into: C:\geronimo-site\docs
>>   [anakia] Input:  devtools\_vti_cnf\index.xml
>>
>>   [anakia] Error: Content is not allowed in prolog.
>>   [anakia]        Line: 1 Column: 1
>>
>>   [anakia] Input:  devtools\index.xml
>>   [anakia] Output: C:\geronimo-site\docs\devtools\index.html
>>
>> BUILD SUCCESSFUL
>> Total time: 1 second
>>
>>
>
>

-- 
Geir Magnusson Jr                                  +1-203-665-6437
geirm@apache.org



Re: site generation error

Posted by Sachin Patel <sp...@gmail.com>.
Nevermind, thats file is from a hidden folder that FrontPage is creating 
when I import the site. 

Sachin Patel wrote:
> I'm not sure if I was getting this error before, but I just noticed it 
> when running ant for the site generation.
>
> C:\geronimo-site>ant
> Buildfile: build.xml
>
> site:
>     [echo]
>     [echo]        #######################################################
>     [echo]        #
>     [echo]        #  Now using Anakia to transform our XML documentation
>     [echo]        #  to HTML.
>     [echo]        #
>     [echo]        #######################################################
>     [echo]
>   [anakia] Transforming into: C:\geronimo-site\docs
>   [anakia] Input:  devtools\_vti_cnf\index.xml
>
>   [anakia] Error: Content is not allowed in prolog.
>   [anakia]        Line: 1 Column: 1
>
>   [anakia] Input:  devtools\index.xml
>   [anakia] Output: C:\geronimo-site\docs\devtools\index.html
>
> BUILD SUCCESSFUL
> Total time: 1 second
>