RE: Build failure on master...anyone know what this is?

2013-07-26 Thread Alex Huang
+1

Our *Cmd.java files are basically a DSL written in Java.  As such anything 
required to generate the doc should reside with Cmd.java files.

--Alex

> -Original Message-
> From: Chip Childers [mailto:chip.child...@sungard.com]
> Sent: Friday, July 26, 2013 6:01 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Build failure on master...anyone know what this is?
> 
> On Fri, Jul 26, 2013 at 10:05:04AM +0530, Prasanna Santhanam wrote:
> > Fixed this fd62a22. This _always_ breaks when we add a new API :)
> 
> Indeed...  if not _always_, at least very close to _always_.
> 
> I wonder if it wouldn't be worth adding some logic that figures out the
> categories at build time?
> 
> >
> > On Thu, Jul 25, 2013 at 08:28:40PM -0700, Sheng Yang wrote:
> > > Don't know about deleteCacheStore.xml, but seems you need something
> > > like
> > > this:
> > >
> > > diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py index
> > > 6c08d17..33a7e75 100644
> > > --- a/tools/apidoc/gen_toc.py
> > > +++ b/tools/apidoc/gen_toc.py
> > > @@ -152,7 +152,9 @@ known_categories = {
> > >  'PortableIp': 'Portable IP',
> > >  'dedicateHost': 'Dedicate Resources',
> > >  'releaseDedicatedHost': 'Dedicate Resources',
> > > 'Baremetal' : 'Baremetal',
> > > -'Ucs' : 'UCS'
> > > +'Ucs' : 'UCS',
> > > +'CacheStore' : 'Cache Store'
> > >  }
> > >
> > > Edison knows more about it.
> > >
> > > --Sheng
> > >
> > >
> > > On Thu, Jul 25, 2013 at 7:54 PM, Alex Huang 
> wrote:
> > >
> > > > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc
> > > > --- Check, is this api part of another build profile? Null value for 
> > > > key:
> > > > configureSimulator preProcessedCommand=1 Traceback (most recent
> > > > call last):
> > > >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189,
> > > > in 
> > > > category = choose_category(fn)
> > > >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169,
> > > > in choose_category
> > > > (fn, __file__))
> > > > Exception: Need to add a category for deleteCacheStore.xml to
> > > > /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> > > >
> > > >
> > > > Thanks.
> > > > --Alex
> > > >
> >
> > --
> > Prasanna.,
> >
> > 
> > Powered by BigRock.com
> >
> >


Re: Build failure on master...anyone know what this is?

2013-07-26 Thread Chip Childers
On Fri, Jul 26, 2013 at 10:28 AM, Donal Lafferty
wrote:

>  Copy paste error.  Meant this link:
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack#HowtobuildCloudStack-BuildingCloudStack
>
> It used to be enough to use 'mvn clean install', and you see these
> instructions on older pages.  E.g. "Maven procedure developed for
> Cloudstack 4.1.0 and later" under
> http://cloudstack.apache.org/develop/environment.html
>
> DL
>
> PS.  AFAIK, I don't have the rights to update the above link.
>
>
Patches welcome though!

The content is in svn here:
https://svn.apache.org/repos/asf/cloudstack/site/trunk

Send patch suggestions for the website to market...@cloudstack.apache.org


RE: Build failure on master...anyone know what this is?

2013-07-26 Thread Donal Lafferty
 Copy paste error.  Meant this link:  
https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack#HowtobuildCloudStack-BuildingCloudStack

It used to be enough to use 'mvn clean install', and you see these instructions 
on older pages.  E.g. "Maven procedure developed for Cloudstack 4.1.0 and 
later" under http://cloudstack.apache.org/develop/environment.html

DL

PS.  AFAIK, I don't have the rights to update the above link.

> -Original Message-
> From: Daan Hoogland [mailto:daan.hoogl...@gmail.com]
> Sent: 26 July 2013 2:52 PM
> To: dev
> Subject: Re: Build failure on master...anyone know what this is?
> 
> Donal,
> 
> The page (found after following instructions on the page not found page)
> says, mvn clean install -P developer,systemvm
> 
> How is this deprecated? Or do you mean that not adding the -P option is?
> 
> 
> On Fri, Jul 26, 2013 at 10:51 AM, Donal Lafferty
> wrote:
> 
> > AFAIK, using 'mvn clean install' to build master is deprecated.
> >
> > See
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+o
> n+master+branch#Howtobuildonmasterbranch-BuildingCloudStackfor
> updated instructions.
> >
> >
> > DL
> >
> >
> > > -Original Message-----
> > > From: Min Chen [mailto:min.c...@citrix.com]
> > > Sent: 26 July 2013 5:57 AM
> > > To: 
> > > Cc: dev@cloudstack.apache.org
> > > Subject: Re: Build failure on master...anyone know what this is?
> > >
> > > Thanks Prasanna. I only did normal mvn clean install before checking
> > > in, missed this apidoc failure. Will remember this tip.
> > >
> > > -min
> > >
> > > Sent from my iPhone
> > >
> > > On Jul 25, 2013, at 9:38 PM, "Prasanna Santhanam" 
> > wrote:
> > >
> > > > What this is is the table of content mapper on the API
> > > > documentation page you see in the cloudstack docs. Based on the
> > > > API prefixes we put it in the right category. eg:
> > > > deleteCacheStore, createCacheStore etc go under the heading "Image
> Store"
> > > >
> > > > The file to change when you introduce a new API is
> > > > 'tools/apidoc/gen_toc.py'. Go to the dictionary and add your
> > > > mapping for API -> category.
> > > >
> > > > If you don't the 'mvn -Pdeveloper -pl :cloud-apidoc clean install'
> > > > will fail.
> > > >
> > > > On Fri, Jul 26, 2013 at 02:54:57AM +, Alex Huang wrote:
> > > >> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc
> > > >> --- Check, is this api part of another build profile? Null value for 
> > > >> key:
> > > >> configureSimulator preProcessedCommand=1 Traceback (most recent
> > > >> call
> > > last):
> > > >>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189,
> > > >> in
> > > 
> > > >>category = choose_category(fn)  File
> > > >> "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> > > choose_category
> > > >>(fn, __file__))
> > > >> Exception: Need to add a category for deleteCacheStore.xml to
> > > >> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> > > >>
> > > >>
> > > >> Thanks.
> > > >> --Alex
> > > >
> > > > --
> > > > Prasanna.,
> > > >
> > > > 
> > > > Powered by BigRock.com
> > > >
> >


Re: Build failure on master...anyone know what this is?

2013-07-26 Thread Daan Hoogland
Donal,

The page (found after following instructions on the page not found page)
says,
mvn clean install -P developer,systemvm

How is this deprecated? Or do you mean that not adding the -P option is?


On Fri, Jul 26, 2013 at 10:51 AM, Donal Lafferty
wrote:

> AFAIK, using 'mvn clean install' to build master is deprecated.
>
> See
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch#Howtobuildonmasterbranch-BuildingCloudStackfor
>  updated instructions.
>
>
> DL
>
>
> > -Original Message-
> > From: Min Chen [mailto:min.c...@citrix.com]
> > Sent: 26 July 2013 5:57 AM
> > To: 
> > Cc: dev@cloudstack.apache.org
> > Subject: Re: Build failure on master...anyone know what this is?
> >
> > Thanks Prasanna. I only did normal mvn clean install before checking in,
> > missed this apidoc failure. Will remember this tip.
> >
> > -min
> >
> > Sent from my iPhone
> >
> > On Jul 25, 2013, at 9:38 PM, "Prasanna Santhanam" 
> wrote:
> >
> > > What this is is the table of content mapper on the API documentation
> > > page you see in the cloudstack docs. Based on the API prefixes we put
> > > it in the right category. eg: deleteCacheStore, createCacheStore etc
> > > go under the heading "Image Store"
> > >
> > > The file to change when you introduce a new API is
> > > 'tools/apidoc/gen_toc.py'. Go to the dictionary and add your mapping
> > > for API -> category.
> > >
> > > If you don't the 'mvn -Pdeveloper -pl :cloud-apidoc clean install'
> > > will fail.
> > >
> > > On Fri, Jul 26, 2013 at 02:54:57AM +, Alex Huang wrote:
> > >> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > >> Check, is this api part of another build profile? Null value for key:
> > >> configureSimulator preProcessedCommand=1 Traceback (most recent call
> > last):
> > >>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in
> > 
> > >>category = choose_category(fn)
> > >>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> > choose_category
> > >>(fn, __file__))
> > >> Exception: Need to add a category for deleteCacheStore.xml to
> > >> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> > >>
> > >>
> > >> Thanks.
> > >> --Alex
> > >
> > > --
> > > Prasanna.,
> > >
> > > 
> > > Powered by BigRock.com
> > >
>


Re: Build failure on master...anyone know what this is?

2013-07-26 Thread Chip Childers
On Fri, Jul 26, 2013 at 10:05:04AM +0530, Prasanna Santhanam wrote:
> Fixed this fd62a22. This _always_ breaks when we add a new API :)

Indeed...  if not _always_, at least very close to _always_.

I wonder if it wouldn't be worth adding some logic that figures out the
categories at build time?

> 
> On Thu, Jul 25, 2013 at 08:28:40PM -0700, Sheng Yang wrote:
> > Don't know about deleteCacheStore.xml, but seems you need something like
> > this:
> > 
> > diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py
> > index 6c08d17..33a7e75 100644
> > --- a/tools/apidoc/gen_toc.py
> > +++ b/tools/apidoc/gen_toc.py
> > @@ -152,7 +152,9 @@ known_categories = {
> >  'PortableIp': 'Portable IP',
> >  'dedicateHost': 'Dedicate Resources',
> >  'releaseDedicatedHost': 'Dedicate Resources',
> > 'Baremetal' : 'Baremetal',
> > -'Ucs' : 'UCS'
> > +'Ucs' : 'UCS',
> > +'CacheStore' : 'Cache Store'
> >  }
> > 
> > Edison knows more about it.
> > 
> > --Sheng
> > 
> > 
> > On Thu, Jul 25, 2013 at 7:54 PM, Alex Huang  wrote:
> > 
> > > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > > Check, is this api part of another build profile? Null value for key:
> > > configureSimulator preProcessedCommand=1
> > > Traceback (most recent call last):
> > >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in
> > > 
> > > category = choose_category(fn)
> > >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> > > choose_category
> > > (fn, __file__))
> > > Exception: Need to add a category for deleteCacheStore.xml to
> > > /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> > >
> > >
> > > Thanks.
> > > --Alex
> > >
> 
> -- 
> Prasanna.,
> 
> 
> Powered by BigRock.com
> 
> 


RE: Build failure on master...anyone know what this is?

2013-07-26 Thread Donal Lafferty
AFAIK, using 'mvn clean install' to build master is deprecated.

See 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch#Howtobuildonmasterbranch-BuildingCloudStack
 for updated instructions.


DL


> -Original Message-
> From: Min Chen [mailto:min.c...@citrix.com]
> Sent: 26 July 2013 5:57 AM
> To: 
> Cc: dev@cloudstack.apache.org
> Subject: Re: Build failure on master...anyone know what this is?
> 
> Thanks Prasanna. I only did normal mvn clean install before checking in,
> missed this apidoc failure. Will remember this tip.
> 
> -min
> 
> Sent from my iPhone
> 
> On Jul 25, 2013, at 9:38 PM, "Prasanna Santhanam"  wrote:
> 
> > What this is is the table of content mapper on the API documentation
> > page you see in the cloudstack docs. Based on the API prefixes we put
> > it in the right category. eg: deleteCacheStore, createCacheStore etc
> > go under the heading "Image Store"
> >
> > The file to change when you introduce a new API is
> > 'tools/apidoc/gen_toc.py'. Go to the dictionary and add your mapping
> > for API -> category.
> >
> > If you don't the 'mvn -Pdeveloper -pl :cloud-apidoc clean install'
> > will fail.
> >
> > On Fri, Jul 26, 2013 at 02:54:57AM +, Alex Huang wrote:
> >> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> >> Check, is this api part of another build profile? Null value for key:
> >> configureSimulator preProcessedCommand=1 Traceback (most recent call
> last):
> >>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in
> 
> >>category = choose_category(fn)
> >>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> choose_category
> >>(fn, __file__))
> >> Exception: Need to add a category for deleteCacheStore.xml to
> >> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> >>
> >>
> >> Thanks.
> >> --Alex
> >
> > --
> > Prasanna.,
> >
> > 
> > Powered by BigRock.com
> >


Re: Build failure on master...anyone know what this is?

2013-07-25 Thread Min Chen
Thanks Prasanna. I only did normal mvn clean install before checking in, missed 
this apidoc failure. Will remember this tip.

-min

Sent from my iPhone

On Jul 25, 2013, at 9:38 PM, "Prasanna Santhanam"  wrote:

> What this is is the table of content mapper on the API documentation
> page you see in the cloudstack docs. Based on the API prefixes we put
> it in the right category. eg: deleteCacheStore, createCacheStore etc
> go under the heading "Image Store"
> 
> The file to change when you introduce a new API is
> 'tools/apidoc/gen_toc.py'. Go to the dictionary and add your mapping
> for API -> category.
> 
> If you don't the 'mvn -Pdeveloper -pl :cloud-apidoc clean install'
> will fail.
> 
> On Fri, Jul 26, 2013 at 02:54:57AM +, Alex Huang wrote:
>> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
>> Check, is this api part of another build profile? Null value for key: 
>> configureSimulator preProcessedCommand=1
>> Traceback (most recent call last):
>>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in 
>>category = choose_category(fn)
>>  File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in 
>> choose_category
>>(fn, __file__))
>> Exception: Need to add a category for deleteCacheStore.xml to 
>> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
>> 
>> 
>> Thanks.
>> --Alex
> 
> -- 
> Prasanna.,
> 
> 
> Powered by BigRock.com
> 


Re: Build failure on master...anyone know what this is?

2013-07-25 Thread Prasanna Santhanam
What this is is the table of content mapper on the API documentation
page you see in the cloudstack docs. Based on the API prefixes we put
it in the right category. eg: deleteCacheStore, createCacheStore etc
go under the heading "Image Store"

The file to change when you introduce a new API is
'tools/apidoc/gen_toc.py'. Go to the dictionary and add your mapping
for API -> category.

If you don't the 'mvn -Pdeveloper -pl :cloud-apidoc clean install'
will fail.

On Fri, Jul 26, 2013 at 02:54:57AM +, Alex Huang wrote:
> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> Check, is this api part of another build profile? Null value for key: 
> configureSimulator preProcessedCommand=1
> Traceback (most recent call last):
>   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in 
> category = choose_category(fn)
>   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in 
> choose_category
> (fn, __file__))
> Exception: Need to add a category for deleteCacheStore.xml to 
> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> 
> 
> Thanks.
> --Alex

-- 
Prasanna.,


Powered by BigRock.com



Re: Build failure on master...anyone know what this is?

2013-07-25 Thread Prasanna Santhanam
Fixed this fd62a22. This _always_ breaks when we add a new API :)

On Thu, Jul 25, 2013 at 08:28:40PM -0700, Sheng Yang wrote:
> Don't know about deleteCacheStore.xml, but seems you need something like
> this:
> 
> diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py
> index 6c08d17..33a7e75 100644
> --- a/tools/apidoc/gen_toc.py
> +++ b/tools/apidoc/gen_toc.py
> @@ -152,7 +152,9 @@ known_categories = {
>  'PortableIp': 'Portable IP',
>  'dedicateHost': 'Dedicate Resources',
>  'releaseDedicatedHost': 'Dedicate Resources',
> 'Baremetal' : 'Baremetal',
> -'Ucs' : 'UCS'
> +'Ucs' : 'UCS',
> +'CacheStore' : 'Cache Store'
>  }
> 
> Edison knows more about it.
> 
> --Sheng
> 
> 
> On Thu, Jul 25, 2013 at 7:54 PM, Alex Huang  wrote:
> 
> > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > Check, is this api part of another build profile? Null value for key:
> > configureSimulator preProcessedCommand=1
> > Traceback (most recent call last):
> >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in
> > 
> > category = choose_category(fn)
> >   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> > choose_category
> > (fn, __file__))
> > Exception: Need to add a category for deleteCacheStore.xml to
> > /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
> >
> >
> > Thanks.
> > --Alex
> >

-- 
Prasanna.,


Powered by BigRock.com



Re: Build failure on master...anyone know what this is?

2013-07-25 Thread Sheng Yang
Don't know about deleteCacheStore.xml, but seems you need something like
this:

diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py
index 6c08d17..33a7e75 100644
--- a/tools/apidoc/gen_toc.py
+++ b/tools/apidoc/gen_toc.py
@@ -152,7 +152,9 @@ known_categories = {
 'PortableIp': 'Portable IP',
 'dedicateHost': 'Dedicate Resources',
 'releaseDedicatedHost': 'Dedicate Resources',
'Baremetal' : 'Baremetal',
-'Ucs' : 'UCS'
+'Ucs' : 'UCS',
+'CacheStore' : 'Cache Store'
 }

Edison knows more about it.

--Sheng


On Thu, Jul 25, 2013 at 7:54 PM, Alex Huang  wrote:

> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> Check, is this api part of another build profile? Null value for key:
> configureSimulator preProcessedCommand=1
> Traceback (most recent call last):
>   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 189, in
> 
> category = choose_category(fn)
>   File "/cyg/d/src/acs/master/tools/apidoc/gen_toc.py", line 169, in
> choose_category
> (fn, __file__))
> Exception: Need to add a category for deleteCacheStore.xml to
> /cyg/d/src/acs/master/tools/apidoc/gen_toc.py:known_categories
>
>
> Thanks.
> --Alex
>