You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Ate Douma (JIRA)" <ji...@apache.org> on 2011/06/15 03:52:47 UTC

[jira] [Commented] (RAVE-59) Create automation for building of demo package

    [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ] 

Ate Douma commented on RAVE-59:
-------------------------------

I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.

The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
Note: these artifacts are build in the rave-portal/target directory!

Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.

Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
Specifically, please verify if the execution bit for shell scripts is still set, etc.
  
Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
I created a separate RAVE-63 issue for that.

Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
These also need to be filled in, for which I created issue RAVE-64
 


> Create automation for building of demo package
> ----------------------------------------------
>
>                 Key: RAVE-59
>                 URL: https://issues.apache.org/jira/browse/RAVE-59
>             Project: Rave
>          Issue Type: Sub-task
>            Reporter: Matt Franklin
>            Assignee: Ate Douma
>             Fix For: 0.1-INCUBATING
>
>
> C

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Raminderjeet Singh <rs...@gmail.com>.
I get the same permission problem on my Mac book pro also. i tried fresh build on 2 different user but the same problem exist. 

File permission god is not happy with Indiana.

Thanks
Raminder


On Jun 16, 2011, at 1:32 PM, Jasha Joachimsthal wrote:

> On 16 June 2011 18:02, Jasha Joachimsthal <j....@onehippo.com>wrote:
> 
>> 
>> On 16 June 2011 17:03, Ate Douma <at...@douma.nu> wrote:
>> 
>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>> 
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>> 
>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>> have "read" permissions after I unpack it.
>>>> 
>>> 
>>> Hi Marlon,
>>> 
>>> I just build the distributions natively under OS X but it all simply just
>>> works as expected. I don't have any permissions problems either. I tried
>>> also to extract the tar.gz and .zip archives which I build under Linux and
>>> those too worked without an issue.
>>> 
>>> Not sure therefore what exactly could be wrong on your environment.
>>> Can others please test this as well and provide some feedback?
>>> 
>> 
>> I had no problems using the tar.gz on my Mac but haven't checked the
>> permissions. I unpacked it using Stuffit Expander, not from the terminal.
>> 
>> 
>>> I haven't yet tried and tested on Windows either, but maybe someone else
>>> did?
>>> 
>>> Ate
>> 
>> 
>> I'll check Windows XP when my laptop is finished updating and has restarted
>> (haven't used it in weeks)...
>> 
>> 
> The zip file doesn't run in Windows. Unfortunately one of the batch scripts
> closes the window so fast that I'm unable to see the error. It is some
> classloading issue but I couldn't see which :(
> 
> Jasha


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
On 06/16/2011 07:32 PM, Jasha Joachimsthal wrote:
> On 16 June 2011 18:02, Jasha Joachimsthal<j....@onehippo.com>wrote:
>
>>
>> On 16 June 2011 17:03, Ate Douma<at...@douma.nu>  wrote:
>>
>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>> have "read" permissions after I unpack it.
>>>>
>>>
>>> Hi Marlon,
>>>
>>> I just build the distributions natively under OS X but it all simply just
>>> works as expected. I don't have any permissions problems either. I tried
>>> also to extract the tar.gz and .zip archives which I build under Linux and
>>> those too worked without an issue.
>>>
>>> Not sure therefore what exactly could be wrong on your environment.
>>> Can others please test this as well and provide some feedback?
>>>
>>
>> I had no problems using the tar.gz on my Mac but haven't checked the
>> permissions. I unpacked it using Stuffit Expander, not from the terminal.
>>
>>
>>> I haven't yet tried and tested on Windows either, but maybe someone else
>>> did?
>>>
>>> Ate
>>
>>
>> I'll check Windows XP when my laptop is finished updating and has restarted
>> (haven't used it in weeks)...
>>
>>
> The zip file doesn't run in Windows. Unfortunately one of the batch scripts
> closes the window so fast that I'm unable to see the error. It is some
> classloading issue but I couldn't see which :(

My bad: I've been away so long from Windows platform development I simply forgot 
eol-style handling and how to properly set environment variables (do not use 
quotes).
I just committed a fix for the setenv.bat file which now should make it work 
properly on Windows.
Note: the svn commit mail notification seems to be delayed ...

Ate

>
> Jasha
>


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Jasha Joachimsthal <j....@onehippo.com>.
On 16 June 2011 18:02, Jasha Joachimsthal <j....@onehippo.com>wrote:

>
> On 16 June 2011 17:03, Ate Douma <at...@douma.nu> wrote:
>
>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>> have "read" permissions after I unpack it.
>>>
>>
>> Hi Marlon,
>>
>> I just build the distributions natively under OS X but it all simply just
>> works as expected. I don't have any permissions problems either. I tried
>> also to extract the tar.gz and .zip archives which I build under Linux and
>> those too worked without an issue.
>>
>> Not sure therefore what exactly could be wrong on your environment.
>> Can others please test this as well and provide some feedback?
>>
>
> I had no problems using the tar.gz on my Mac but haven't checked the
> permissions. I unpacked it using Stuffit Expander, not from the terminal.
>
>
>> I haven't yet tried and tested on Windows either, but maybe someone else
>> did?
>>
>> Ate
>
>
> I'll check Windows XP when my laptop is finished updating and has restarted
> (haven't used it in weeks)...
>
>
The zip file doesn't run in Windows. Unfortunately one of the batch scripts
closes the window so fast that I'm unable to see the error. It is some
classloading issue but I couldn't see which :(

Jasha

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Jasha Joachimsthal <j....@onehippo.com>.
On 16 June 2011 17:03, Ate Douma <at...@douma.nu> wrote:

> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>> have "read" permissions after I unpack it.
>>
>
> Hi Marlon,
>
> I just build the distributions natively under OS X but it all simply just
> works as expected. I don't have any permissions problems either. I tried
> also to extract the tar.gz and .zip archives which I build under Linux and
> those too worked without an issue.
>
> Not sure therefore what exactly could be wrong on your environment.
> Can others please test this as well and provide some feedback?
>

I had no problems using the tar.gz on my Mac but haven't checked the
permissions. I unpacked it using Stuffit Expander, not from the terminal.


> I haven't yet tried and tested on Windows either, but maybe someone else
> did?
>
> Ate


I'll check Windows XP when my laptop is finished updating and has restarted
(haven't used it in weeks)...

Jasha Joachimsthal

Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

www.onehippo.com



>
>
>
>>
>> Marlon
>>
>>
>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>
>>>
>>>     [
>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569]
>>>
>>> Ate Douma commented on RAVE-59:
>>> -------------------------------
>>>
>>> I've committed a basic working automation for building a Rave demo/bin
>>> distribution using maven-assembly-plugin and leveraging the cargo plugin to
>>> setup and pre-deployed rave portal on Tomcat.
>>>
>>> The distribution packages can be build from the rave-project folder using
>>> the "dist" profile by running: $mvn -P dist
>>> This will enforce a maven clean + install and thereafter build a
>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>> Note: these artifacts are build in the rave-portal/target directory!
>>>
>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>> attaching of these "artifacts" to the project, meaning these will *not* be
>>> deployed to the remote maven repository (Nexus) during a release.
>>> You would need to specify -P dist anyway to get it to work, so in
>>> practice this is not really needed, but for sanity reasons I'd rather make
>>> sure it can't happen anyway.
>>>
>>> Can everyone please test drive this, including building the distributions
>>> on a Windows environment and verify if these distributions thereafter still
>>> are valid to be extracted and executed/run on a Linux environment?
>>> Specifically, please verify if the execution bit for shell scripts is
>>> still set, etc.
>>>
>>> Furthermore, and IMO more importantly, what needs to be done is providing
>>> the appropriate LICENSE and NOTICE files for the binary distributions
>>> (including the rave-shindig.war and rave-portal.war).
>>> I created a separate RAVE-63 issue for that.
>>>
>>> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project
>>> folder and a demo/bin specific README file, both to be included in the demo
>>> distributions.
>>> These also need to be filled in, for which I created issue RAVE-64
>>>
>>>
>>>
>>>  Create automation for building of demo package
>>>> ----------------------------------------------
>>>>
>>>>                 Key: RAVE-59
>>>>                 URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>             Project: Rave
>>>>          Issue Type: Sub-task
>>>>            Reporter: Matt Franklin
>>>>            Assignee: Ate Douma
>>>>             Fix For: 0.1-INCUBATING
>>>>
>>>>
>>>> C
>>>>
>>>
>>> --
>>> This message is automatically generated by JIRA.
>>> For more information on JIRA, see:
>>> http://www.atlassian.com/software/jira
>>>
>>>
>>>  -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iQEcBAEBAgAGBQJN+BaVAAoJEOEgD2XReDo5pE4H/33R6afHEx47xorNG1V93Khm
>> SEu0V1cOJGk5FICVu35BV/7Z12o/PXwC7Iw0WXPFQB/3WHebCGC1v6EwIBgqM6Nn
>> JLOot1HrVh6mhiypa8Z9LALDzShNsQAdpuXOf7zZZyDQs7agPOi7ca/ePEB5Qrx9
>> kbq0kE4BWZFb/XOfiRvEtlpdi4NWZTJJapkdHoqWNHfijBicGEwzJ+QZXL7sYXHO
>> lz5aMj91llk8PPBExrLwV1PNe9MBbrBG1ZoaYlSal7R/E297rX+YFODc+Pil5646
>> +uiSwHjakzEz2DHJA8t053nOzcUIOSwn9rnKZQJKPcNV2kO0MJNYt8vV/Nbw0Eo=
>> =jM2S
>> -----END PGP SIGNATURE-----
>>
>
>

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Jasha Joachimsthal <j....@onehippo.com>.
On 17 June 2011 02:22, Ate Douma <at...@douma.nu> wrote:

> I've uploaded both my .tar.gz and .zip archives on google docs here:
>
>
> https://docs.google.com/leaf?**id=**0B6BPc1fPmqgSYWY5NzRhMjAtODEwO**
> C00NWIwLWI0MGUtNDhjYzQ5ZThjYTd**m&authkey=CPeR5pAK<https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK>
>
>
> https://docs.google.com/leaf?**id=**0B6BPc1fPmqgSNTY2ZjExZWQtNzIxN**
> y00OWYxLWI5YzYtODE4NzNlYTVhOGI**x&authkey=CPfMlI8H<https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H>
>
> Can you try them out and see if they work for you?
>

The .zip starts up in Windows XP. Login works, but the contents of the
predefined gadgets don't appear in my browser and I get the error 'console
is not defined' as Javascript error. When I add new gadgets from the store
they do render. Deleting gadgets is broken for all gadgets (predefined and
added).

Jasha Joachimsthal

Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

www.onehippo.com

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ate--

I did not check the files that you built, only my new builds.  I will check your downloads now, but I expect them to work fine for me.

Marlon



On 6/17/11 7:43 AM, Ate Douma wrote:
> On 06/17/2011 03:36 AM, Marlon Pierce wrote:
> With jstl fixed, I just rebuilt successfully on linux but encountered a
> few other minor issues.
> 
> * On my linux server, the files have the correct read permissions (this
> is the problem on our macs). That is, everything looks the same as Ate's
> listing below.
>> OK.
>> Just for my sanity: you checked this on the files I provided or (also) on newly builds of your own?
> 
> 
> * However, we're missing a logs directory:
> 
> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
> touch: cannot touch
> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
> directory
> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
> directory
> 
>> Ah, good catch!
>> I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which doesn't has this problem...
> 
>> The missing logs folder is (another) quirk from the assembly-plugin which seems to skip the logs folder *because* its empty, but only because I've used an <exclude>*</exclude>. Which kind of makes sense, maybe.
> 
>> Anyway, I'll commit a fix shortly to remedy this.
> 
> 
> * The .zip version does have the correct .sh files.  I also rebuilt on
> my mac and found them.  So no problem here.
>> OK, good.
> 
> 
> * However, the .sh files in the .zip that I built on linux do not have
> executable permissions.  This is also true on my mac.
>> Hmm, weird differences again.
> 
>> On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain the execution bit for me.
>> But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.
> 
>> Which leaves the problem both you and Raminder experienced with the permissions on Mac which for both Jasha and myself it simply works fine.
> 
>> Could anyone else running a Mac please check this too and report if it works or not?
> 
>> Ate
> 
> 
> * And the .zip is also missing /logs/
> 
> 
> Marlon
> 
> 
> On 6/16/11 8:22 PM, Ate Douma wrote:
>>>> I again did a clean checkout, build and test on OS X using the latest
>>>> trunk and still have no permissions problems as you can see below:
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl
>>>> total 120760
>>>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl
>>>> total 120760
>>>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT
>>>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>>>> total 1216
>>>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>>>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>>>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>>>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>>>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>>>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>>>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>>>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>>>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>>>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>>>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>>>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>>>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>>>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>>>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>>>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>>>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>>>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>>>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>>>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>>>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>>>
>>>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>>>
>>>>
>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>>>
>>>>
>>>>
>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>>>
>>>>
>>>> Can you try them out and see if they work for you?
>>>> If they do, there must be something different during building on your
>>>> (and Raminder) machine. If these too fail, there must be something
>>>> different with the extraction process and/or (default) permissions on
>>>> your system.
>>>>
>>>> Both the .tar.gz and .zip should and do contain the same content.
>>>> The .zip archive is merely provided as convenience for Windows users
>>>> which often are not accustomed to tar.gz type archives.
>>>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>>>> should be retained even within .zip archives nowadays).
>>>>
>>>> Regards,
>>>>
>>>> Ate
>>>>
>>>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>>>> I just tried to build on a clean linux machine but the build failed:
>>>>
>>>> [ERROR] Failed to execute goal on project rave-portal: Could not
>>>> resolve dependencies for project
>>>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>>>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>>>> (http://download.java.net/maven/2/) ->   [Help 1]
>>>>
>>>> I'll file a Jira ticket.
>>>>
>>>> I get the permission problems with the .tar.gz on two different macs:
>>>>
>>>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>>>> total 121696
>>>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>>>> rave-0.1-incubating-SNAPSHOT
>>>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>>
>>>> and
>>>>
>>>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>>>> rave-0.1-incubating-SNAPSHOT/bin
>>>> total 1104
>>>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>>>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>>>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>>>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>>>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>>>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>>>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>>>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>>>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>>>> commons-daemon-native.tar.gz
>>>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>>>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>>>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>>>
>>>> Also, is it intended for the .zip file to have only .bat and not .sh
>>>> files? This is what I get (on mac again).
>>>>
>>>>
>>>> Marlon
>>>>
>>>>
>>>>
>>>>
>>>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>>>> have "read" permissions after I unpack it.
>>>>>>>
>>>>>>>> Hi Marlon,
>>>>>>>
>>>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>>>> just works as expected. I don't have any permissions problems
>>>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>>>> build under Linux and those too worked without an issue.
>>>>>>>
>>>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>>>> Can others please test this as well and provide some feedback?
>>>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>>>> else did?
>>>>>>>
>>>>>>>> Ate
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Marlon
>>>>>>>
>>>>>>>
>>>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>>>
>>>>>>>>>>        [
>>>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>>>> ]
>>>>>>>>>>
>>>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>>>> -------------------------------
>>>>>>>>>>
>>>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>>>
>>>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>>>
>>>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>>>> release.
>>>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>>>
>>>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>>>> executed/run on a Linux environment?
>>>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>>>> is still set, etc.
>>>>>>>>>>
>>>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>>>
>>>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>>>> be included in the demo distributions.
>>>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Create automation for building of demo package
>>>>>>>>>>> ----------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>>                    Key: RAVE-59
>>>>>>>>>>>                    URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>>>                Project: Rave
>>>>>>>>>>>             Issue Type: Sub-task
>>>>>>>>>>>               Reporter: Matt Franklin
>>>>>>>>>>>               Assignee: Ate Douma
>>>>>>>>>>>                Fix For: 0.1-INCUBATING
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> C
>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>>>> For more information on JIRA, see:
>>>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>>>
>>>>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+0ZsAAoJEEfVXEODPFIDwAsH/AyicqCnZQuoO9Lir1TwwJZv
esNr6wOjyQol3ildv/Y68jULnNTk/CmlQv/AzGmdptUv4ckOKaxH9PgQLgR0dca0
yQQ0HCaqHe2IMYmZFBSR/5YzVNhZ6ep6jYmItG0zBleZ+Py9YTiZO7MhK7msDJnj
fJ9Wa+4hFhNdwYUrfUcYHDar4f+PvYcqY9sbU8ZlcC0FgDhWYaT/yi7ZVmDbeQ+N
yUFt39qj9GHE6afStZ7CPeCxERn2etpB4QGOw/fKAWfUs1waY9It+Cy9l77z5F4P
746MATyOXPKvwq/2Bty6faOiaHaG7+v/kyJYNg8UwsOJM0EYPuwnHAKPqLzuJHs=
=dONf
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We could just make directoryMode values 0755 in distbin.xml.  Strange that the plugin values in rave-portal/pom.xml were ignored when I build on Mac.  I've never had this problem with Apache Tomcat.  Here are my permissions for Tomcat (which look correct):

129-79-49-102:apache-tomcat-6.0.32 mpierce$ ls -trl 
total 128
drwxr-xr-x@  2 mpierce  mpierce     68 Feb  2 14:04 work
drwxr-xr-x@  2 mpierce  mpierce     68 Feb  2 14:04 logs
drwxr-xr-x@ 18 mpierce  mpierce    612 Feb  2 14:04 lib
- -rw-r--r--@  1 mpierce  mpierce   8672 Feb  2 14:04 RELEASE-NOTES
drwxr-xr-x@  7 mpierce  mpierce    238 Feb  2 14:04 webapps
drwxr-xr-x@  3 mpierce  mpierce    102 Feb  2 14:04 temp
drwxr-xr-x@  9 mpierce  mpierce    306 Feb  2 14:06 conf
- -rw-r--r--@  1 mpierce  mpierce   6670 Feb  2 14:06 RUNNING.txt
- -rw-r--r--@  1 mpierce  mpierce    558 Feb  2 14:06 NOTICE
- -rw-r--r--@  1 mpierce  mpierce  37951 Feb  2 14:06 LICENSE
drwxr-xr-x@ 23 mpierce  mpierce    782 Jun 17 12:36 bin


I'd conclude they are building their releases on linux.  It doesn't seem to be a tar -zxfv issue but a platform-dependent dist creation issue. 



Marlon


On 6/17/11 12:24 PM, Ate Douma wrote:
> On 06/17/2011 03:40 PM, Marlon Pierce wrote:
> My mac permission problem can be fixed by explicitly adding fileMode and directoryMode settings to each fileSet in distbin.xml.  I'll check this in and test out on linux.
> 
>> Now it doesn't anymore (fully) work on my end :(
>> With default directoryMode 0700 all access for group and other now is denied, meaning I no longer can access nor execute the bin folder as another user, even if within the same group.
> 
>> AFAIK, the default directoryMode for these folders should be 0755, as I also already had configured on the assembly-plugin itself (in rave-portal/pom.xml).
>> It seems we might have conflicting (default) security/permissions handling between your Mac and mine (and Linux)?
> 
>> What I'd like to know is what permissions you see/have when you extract the default Tomcat .tar.gz distribution itself (e.g. apache-tomcat-6.0.32.tar.gz).
>> AFAIK they also use directoryMode 0755 so in that case I'd expect you would have the same problems with "stock" Tomcat also, already?
> 
> 
> 
> 
> Marlon
> 
> 
> On 6/17/11 9:04 AM, Marlon Pierce wrote:
>>>> Ate, the permissions on your downloads are correct after I unpack them.  I did need to remove a "quarantine" @ bit, but this must be an artifact of the download process.
>>>>
>>>> I also cleaned out my Mac's maven repository and rebuilt but still have the same permission problems (files have permissions 0204, directories have permissions 0341).
>>>>
>>>>
>>>> Marlon
>>>>
>>>>
>>>> On 6/17/11 7:43 AM, Ate Douma wrote:
>>>>> On 06/17/2011 03:36 AM, Marlon Pierce wrote:
>>>>> With jstl fixed, I just rebuilt successfully on linux but encountered a
>>>>> few other minor issues.
>>>>
>>>>> * On my linux server, the files have the correct read permissions (this
>>>>> is the problem on our macs). That is, everything looks the same as Ate's
>>>>> listing below.
>>>>>> OK.
>>>>>> Just for my sanity: you checked this on the files I provided or (also) on newly builds of your own?
>>>>
>>>>
>>>>> * However, we're missing a logs directory:
>>>>
>>>>> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
>>>>> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
>>>>> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
>>>>> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
>>>>> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
>>>>> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
>>>>> touch: cannot touch
>>>>> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
>>>>> directory
>>>>> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
>>>>> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
>>>>> directory
>>>>
>>>>>> Ah, good catch!
>>>>>> I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which doesn't has this problem...
>>>>
>>>>>> The missing logs folder is (another) quirk from the assembly-plugin which seems to skip the logs folder *because* its empty, but only because I've used an<exclude>*</exclude>. Which kind of makes sense, maybe.
>>>>
>>>>>> Anyway, I'll commit a fix shortly to remedy this.
>>>>
>>>>
>>>>> * The .zip version does have the correct .sh files.  I also rebuilt on
>>>>> my mac and found them.  So no problem here.
>>>>>> OK, good.
>>>>
>>>>
>>>>> * However, the .sh files in the .zip that I built on linux do not have
>>>>> executable permissions.  This is also true on my mac.
>>>>>> Hmm, weird differences again.
>>>>
>>>>>> On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain the execution bit for me.
>>>>>> But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.
>>>>
>>>>>> Which leaves the problem both you and Raminder experienced with the permissions on Mac which for both Jasha and myself it simply works fine.
>>>>
>>>>>> Could anyone else running a Mac please check this too and report if it works or not?
>>>>
>>>>>> Ate
>>>>
>>>>
>>>>> * And the .zip is also missing /logs/
>>>>
>>>>
>>>>> Marlon
>>>>
>>>>
>>>>> On 6/16/11 8:22 PM, Ate Douma wrote:
>>>>>>>> I again did a clean checkout, build and test on OS X using the latest
>>>>>>>> trunk and still have no permissions problems as you can see below:
>>>>>>>>
>>>>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>>>>> total 120760
>>>>>>>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>>>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>>>
>>>>>>>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>>>
>>>>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>>>>> total 120760
>>>>>>>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>>>>>>>> rave-0.1-incubating-SNAPSHOT
>>>>>>>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>>>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>>>
>>>>>>>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>>>>>>>> total 1216
>>>>>>>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>>>>>>>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>>>>>>>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>>>>>>>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>>>>>>>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>>>>>>>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>>>>>>>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>>>>>>>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>>>>>>>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>>>>>>>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>>>>>>>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>>>>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>>>>>>>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>>>>>>>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>>>>>>>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>>>>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>>>>>>>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>>>>>>>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>>>>>>>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>>>>>>>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>>>>>>>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>>>>>>>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>>>>>>>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>>>>>>>
>>>>>>>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>>>>>>>
>>>>>>>>
>>>>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>>>>>>>
>>>>>>>>
>>>>>>>> Can you try them out and see if they work for you?
>>>>>>>> If they do, there must be something different during building on your
>>>>>>>> (and Raminder) machine. If these too fail, there must be something
>>>>>>>> different with the extraction process and/or (default) permissions on
>>>>>>>> your system.
>>>>>>>>
>>>>>>>> Both the .tar.gz and .zip should and do contain the same content.
>>>>>>>> The .zip archive is merely provided as convenience for Windows users
>>>>>>>> which often are not accustomed to tar.gz type archives.
>>>>>>>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>>>>>>>> should be retained even within .zip archives nowadays).
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Ate
>>>>>>>>
>>>>>>>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>>>>>>>> I just tried to build on a clean linux machine but the build failed:
>>>>>>>>
>>>>>>>> [ERROR] Failed to execute goal on project rave-portal: Could not
>>>>>>>> resolve dependencies for project
>>>>>>>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>>>>>>>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>>>>>>>> (http://download.java.net/maven/2/) ->    [Help 1]
>>>>>>>>
>>>>>>>> I'll file a Jira ticket.
>>>>>>>>
>>>>>>>> I get the permission problems with the .tar.gz on two different macs:
>>>>>>>>
>>>>>>>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>>>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>>>>>>>> total 121696
>>>>>>>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>>>>>>>> rave-0.1-incubating-SNAPSHOT
>>>>>>>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>>>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>>>
>>>>>>>>
>>>>>>>> and
>>>>>>>>
>>>>>>>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>>>>>>>> rave-0.1-incubating-SNAPSHOT/bin
>>>>>>>> total 1104
>>>>>>>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>>>>>>>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>>>>>>>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>>>>>>>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>>>>>>>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>>>>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>>>>>>>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>>>>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>>>>>>>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>>>>>>>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>>>>>>>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>>>>>>>> commons-daemon-native.tar.gz
>>>>>>>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>>>>>>>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>>>>>>>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>>>>>>>
>>>>>>>> Also, is it intended for the .zip file to have only .bat and not .sh
>>>>>>>> files? This is what I get (on mac again).
>>>>>>>>
>>>>>>>>
>>>>>>>> Marlon
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>>>>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>>>>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>>>>>>>> have "read" permissions after I unpack it.
>>>>>>>>>>>
>>>>>>>>>>>> Hi Marlon,
>>>>>>>>>>>
>>>>>>>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>>>>>>>> just works as expected. I don't have any permissions problems
>>>>>>>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>>>>>>>> build under Linux and those too worked without an issue.
>>>>>>>>>>>
>>>>>>>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>>>>>>>> Can others please test this as well and provide some feedback?
>>>>>>>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>>>>>>>> else did?
>>>>>>>>>>>
>>>>>>>>>>>> Ate
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Marlon
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>         [
>>>>>>>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>>>>>>>> ]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>>>>>>>> -------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>>>>>>>> release.
>>>>>>>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>>>>>>>> executed/run on a Linux environment?
>>>>>>>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>>>>>>>> is still set, etc.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>>>>>>>> be included in the demo distributions.
>>>>>>>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Create automation for building of demo package
>>>>>>>>>>>>>>> ----------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     Key: RAVE-59
>>>>>>>>>>>>>>>                     URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>>>>>>>                 Project: Rave
>>>>>>>>>>>>>>>              Issue Type: Sub-task
>>>>>>>>>>>>>>>                Reporter: Matt Franklin
>>>>>>>>>>>>>>>                Assignee: Ate Douma
>>>>>>>>>>>>>>>                 Fix For: 0.1-INCUBATING
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> C
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -- 
>>>>>>>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>>>>>>>> For more information on JIRA, see:
>>>>>>>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+4OlAAoJEEfVXEODPFID80IH/0pI3D4MgEUh1S4gdp4iMvem
XXvedT/r+Sj2Z/fZHc+2PQ3rZWwN8CYFtA3aNE00Wkuiwxxqz/VZoG4ZlBllqrWW
AGdV5sBtPyA5uY+GmEkx+U7bURtEZTdEA3xtPJ9JVUxP80rx98f661i/1hBTpuex
I2cbiw+C+wR8JCyNTshP+DV/OlqtJIK8GiUeIkwuYuiZz0+5HKSnsSv5oau77du9
ScX8BsOAA9dy2rRZfPzdKEh55hcFMN+zHCzvEBfYV1qrzgqe0aGRL61oUExstRr3
D8PNO4ODAfTD25veh92IQQx4swpxCXehX2yMAzFZ2sBjD/lJZrGJZrXwHy6gzX0=
=34te
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
On 06/17/2011 03:40 PM, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> My mac permission problem can be fixed by explicitly adding fileMode and directoryMode settings to each fileSet in distbin.xml.  I'll check this in and test out on linux.

Now it doesn't anymore (fully) work on my end :(
With default directoryMode 0700 all access for group and other now is denied, 
meaning I no longer can access nor execute the bin folder as another user, even 
if within the same group.

AFAIK, the default directoryMode for these folders should be 0755, as I also 
already had configured on the assembly-plugin itself (in rave-portal/pom.xml).
It seems we might have conflicting (default) security/permissions handling 
between your Mac and mine (and Linux)?

What I'd like to know is what permissions you see/have when you extract the 
default Tomcat .tar.gz distribution itself (e.g. apache-tomcat-6.0.32.tar.gz).
AFAIK they also use directoryMode 0755 so in that case I'd expect you would have 
the same problems with "stock" Tomcat also, already?


>
>
> Marlon
>
>
> On 6/17/11 9:04 AM, Marlon Pierce wrote:
>> Ate, the permissions on your downloads are correct after I unpack them.  I did need to remove a "quarantine" @ bit, but this must be an artifact of the download process.
>>
>> I also cleaned out my Mac's maven repository and rebuilt but still have the same permission problems (files have permissions 0204, directories have permissions 0341).
>>
>>
>> Marlon
>>
>>
>> On 6/17/11 7:43 AM, Ate Douma wrote:
>>> On 06/17/2011 03:36 AM, Marlon Pierce wrote:
>>> With jstl fixed, I just rebuilt successfully on linux but encountered a
>>> few other minor issues.
>>
>>> * On my linux server, the files have the correct read permissions (this
>>> is the problem on our macs). That is, everything looks the same as Ate's
>>> listing below.
>>>> OK.
>>>> Just for my sanity: you checked this on the files I provided or (also) on newly builds of your own?
>>
>>
>>> * However, we're missing a logs directory:
>>
>>> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
>>> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
>>> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
>>> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
>>> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
>>> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
>>> touch: cannot touch
>>> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
>>> directory
>>> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
>>> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
>>> directory
>>
>>>> Ah, good catch!
>>>> I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which doesn't has this problem...
>>
>>>> The missing logs folder is (another) quirk from the assembly-plugin which seems to skip the logs folder *because* its empty, but only because I've used an<exclude>*</exclude>. Which kind of makes sense, maybe.
>>
>>>> Anyway, I'll commit a fix shortly to remedy this.
>>
>>
>>> * The .zip version does have the correct .sh files.  I also rebuilt on
>>> my mac and found them.  So no problem here.
>>>> OK, good.
>>
>>
>>> * However, the .sh files in the .zip that I built on linux do not have
>>> executable permissions.  This is also true on my mac.
>>>> Hmm, weird differences again.
>>
>>>> On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain the execution bit for me.
>>>> But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.
>>
>>>> Which leaves the problem both you and Raminder experienced with the permissions on Mac which for both Jasha and myself it simply works fine.
>>
>>>> Could anyone else running a Mac please check this too and report if it works or not?
>>
>>>> Ate
>>
>>
>>> * And the .zip is also missing /logs/
>>
>>
>>> Marlon
>>
>>
>>> On 6/16/11 8:22 PM, Ate Douma wrote:
>>>>>> I again did a clean checkout, build and test on OS X using the latest
>>>>>> trunk and still have no permissions problems as you can see below:
>>>>>>
>>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>>> total 120760
>>>>>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>
>>>>>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>
>>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>>> total 120760
>>>>>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>>>>>> rave-0.1-incubating-SNAPSHOT
>>>>>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>
>>>>>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>>>>>> total 1216
>>>>>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>>>>>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>>>>>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>>>>>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>>>>>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>>>>>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>>>>>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>>>>>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>>>>>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>>>>>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>>>>>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>>>>>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>>>>>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>>>>>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>>>>>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>>>>>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>>>>>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>>>>>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>>>>>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>>>>>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>>>>>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>>>>>
>>>>>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>>>>>
>>>>>>
>>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>>>>>
>>>>>>
>>>>>>
>>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>>>>>
>>>>>>
>>>>>> Can you try them out and see if they work for you?
>>>>>> If they do, there must be something different during building on your
>>>>>> (and Raminder) machine. If these too fail, there must be something
>>>>>> different with the extraction process and/or (default) permissions on
>>>>>> your system.
>>>>>>
>>>>>> Both the .tar.gz and .zip should and do contain the same content.
>>>>>> The .zip archive is merely provided as convenience for Windows users
>>>>>> which often are not accustomed to tar.gz type archives.
>>>>>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>>>>>> should be retained even within .zip archives nowadays).
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Ate
>>>>>>
>>>>>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>>>>>> I just tried to build on a clean linux machine but the build failed:
>>>>>>
>>>>>> [ERROR] Failed to execute goal on project rave-portal: Could not
>>>>>> resolve dependencies for project
>>>>>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>>>>>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>>>>>> (http://download.java.net/maven/2/) ->    [Help 1]
>>>>>>
>>>>>> I'll file a Jira ticket.
>>>>>>
>>>>>> I get the permission problems with the .tar.gz on two different macs:
>>>>>>
>>>>>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>>>>>> total 121696
>>>>>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>>>>>> rave-0.1-incubating-SNAPSHOT
>>>>>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>>
>>>>>>
>>>>>> and
>>>>>>
>>>>>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>>>>>> rave-0.1-incubating-SNAPSHOT/bin
>>>>>> total 1104
>>>>>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>>>>>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>>>>>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>>>>>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>>>>>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>>>>>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>>>>>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>>>>>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>>>>>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>>>>>> commons-daemon-native.tar.gz
>>>>>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>>>>>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>>>>>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>>>>>
>>>>>> Also, is it intended for the .zip file to have only .bat and not .sh
>>>>>> files? This is what I get (on mac again).
>>>>>>
>>>>>>
>>>>>> Marlon
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>>>>>> have "read" permissions after I unpack it.
>>>>>>>>>
>>>>>>>>>> Hi Marlon,
>>>>>>>>>
>>>>>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>>>>>> just works as expected. I don't have any permissions problems
>>>>>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>>>>>> build under Linux and those too worked without an issue.
>>>>>>>>>
>>>>>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>>>>>> Can others please test this as well and provide some feedback?
>>>>>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>>>>>> else did?
>>>>>>>>>
>>>>>>>>>> Ate
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Marlon
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>         [
>>>>>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>>>>>> ]
>>>>>>>>>>>>
>>>>>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>>>>>> -------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>>>>>
>>>>>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>>>>>
>>>>>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>>>>>> release.
>>>>>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>>>>>
>>>>>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>>>>>> executed/run on a Linux environment?
>>>>>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>>>>>> is still set, etc.
>>>>>>>>>>>>
>>>>>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>>>>>
>>>>>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>>>>>> be included in the demo distributions.
>>>>>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Create automation for building of demo package
>>>>>>>>>>>>> ----------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     Key: RAVE-59
>>>>>>>>>>>>>                     URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>>>>>                 Project: Rave
>>>>>>>>>>>>>              Issue Type: Sub-task
>>>>>>>>>>>>>                Reporter: Matt Franklin
>>>>>>>>>>>>>                Assignee: Ate Douma
>>>>>>>>>>>>>                 Fix For: 0.1-INCUBATING
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> C
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>>>>>> For more information on JIRA, see:
>>>>>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>>>>>
>>>>>>>>>>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+1lKAAoJEEfVXEODPFIDW9YH/3/8LXwUIUaAB9GnqVXGI0UV
> jrEp74uebqYSCLWkgIzYr0wZLLxmbd60j+QS8E0us2C7pKdmgrn7SG8eb7yM8fu7
> /c3s37vQTUOYHZ86Oe9oL+wPLQccRaTWZnrbqZOrr3STGVwO0S29VJie5bwBSrsh
> BPNoLifiOzFNM+AT9JRmzEGFJcBcGpcLbHTeonWJukeQ0B87gHObfnLipu3FWEXe
> k7BAtu51B/ne/J5a1EOScZxa6uX1ZsqB7mEwhmKcm70oVi3olcD3EjABahVoNekj
> 3i3QEfkBhaVWEbaN0Ixq8+cT0qS7ufWDomoCLi74JZgzJlhDH8+m/7VYUuVNt4E=
> =GMCs
> -----END PGP SIGNATURE-----


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My mac permission problem can be fixed by explicitly adding fileMode and directoryMode settings to each fileSet in distbin.xml.  I'll check this in and test out on linux.  


Marlon


On 6/17/11 9:04 AM, Marlon Pierce wrote:
> Ate, the permissions on your downloads are correct after I unpack them.  I did need to remove a "quarantine" @ bit, but this must be an artifact of the download process.
> 
> I also cleaned out my Mac's maven repository and rebuilt but still have the same permission problems (files have permissions 0204, directories have permissions 0341).
> 
> 
> Marlon
> 
> 
> On 6/17/11 7:43 AM, Ate Douma wrote:
>> On 06/17/2011 03:36 AM, Marlon Pierce wrote:
>> With jstl fixed, I just rebuilt successfully on linux but encountered a
>> few other minor issues.
> 
>> * On my linux server, the files have the correct read permissions (this
>> is the problem on our macs). That is, everything looks the same as Ate's
>> listing below.
>>> OK.
>>> Just for my sanity: you checked this on the files I provided or (also) on newly builds of your own?
> 
> 
>> * However, we're missing a logs directory:
> 
>> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
>> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
>> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
>> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
>> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
>> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
>> touch: cannot touch
>> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
>> directory
>> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
>> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
>> directory
> 
>>> Ah, good catch!
>>> I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which doesn't has this problem...
> 
>>> The missing logs folder is (another) quirk from the assembly-plugin which seems to skip the logs folder *because* its empty, but only because I've used an <exclude>*</exclude>. Which kind of makes sense, maybe.
> 
>>> Anyway, I'll commit a fix shortly to remedy this.
> 
> 
>> * The .zip version does have the correct .sh files.  I also rebuilt on
>> my mac and found them.  So no problem here.
>>> OK, good.
> 
> 
>> * However, the .sh files in the .zip that I built on linux do not have
>> executable permissions.  This is also true on my mac.
>>> Hmm, weird differences again.
> 
>>> On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain the execution bit for me.
>>> But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.
> 
>>> Which leaves the problem both you and Raminder experienced with the permissions on Mac which for both Jasha and myself it simply works fine.
> 
>>> Could anyone else running a Mac please check this too and report if it works or not?
> 
>>> Ate
> 
> 
>> * And the .zip is also missing /logs/
> 
> 
>> Marlon
> 
> 
>> On 6/16/11 8:22 PM, Ate Douma wrote:
>>>>> I again did a clean checkout, build and test on OS X using the latest
>>>>> trunk and still have no permissions problems as you can see below:
>>>>>
>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>> total 120760
>>>>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>
>>>>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>
>>>>> hal79-mac:ravetest ate$ ls -trl
>>>>> total 120760
>>>>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>>>>> rave-0.1-incubating-SNAPSHOT
>>>>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>
>>>>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>>>>> total 1216
>>>>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>>>>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>>>>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>>>>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>>>>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>>>>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>>>>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>>>>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>>>>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>>>>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>>>>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>>>>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>>>>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>>>>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>>>>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>>>>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>>>>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>>>>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>>>>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>>>>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>>>>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>>>>
>>>>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>>>>
>>>>>
>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>>>>
>>>>>
>>>>>
>>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>>>>
>>>>>
>>>>> Can you try them out and see if they work for you?
>>>>> If they do, there must be something different during building on your
>>>>> (and Raminder) machine. If these too fail, there must be something
>>>>> different with the extraction process and/or (default) permissions on
>>>>> your system.
>>>>>
>>>>> Both the .tar.gz and .zip should and do contain the same content.
>>>>> The .zip archive is merely provided as convenience for Windows users
>>>>> which often are not accustomed to tar.gz type archives.
>>>>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>>>>> should be retained even within .zip archives nowadays).
>>>>>
>>>>> Regards,
>>>>>
>>>>> Ate
>>>>>
>>>>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>>>>> I just tried to build on a clean linux machine but the build failed:
>>>>>
>>>>> [ERROR] Failed to execute goal on project rave-portal: Could not
>>>>> resolve dependencies for project
>>>>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>>>>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>>>>> (http://download.java.net/maven/2/) ->   [Help 1]
>>>>>
>>>>> I'll file a Jira ticket.
>>>>>
>>>>> I get the permission problems with the .tar.gz on two different macs:
>>>>>
>>>>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>>>>> total 121696
>>>>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>>>>> rave-0.1-incubating-SNAPSHOT
>>>>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>>
>>>>>
>>>>> and
>>>>>
>>>>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>>>>> rave-0.1-incubating-SNAPSHOT/bin
>>>>> total 1104
>>>>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>>>>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>>>>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>>>>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>>>>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>>>>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>>>>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>>>>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>>>>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>>>>> commons-daemon-native.tar.gz
>>>>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>>>>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>>>>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>>>>
>>>>> Also, is it intended for the .zip file to have only .bat and not .sh
>>>>> files? This is what I get (on mac again).
>>>>>
>>>>>
>>>>> Marlon
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>>>>> have "read" permissions after I unpack it.
>>>>>>>>
>>>>>>>>> Hi Marlon,
>>>>>>>>
>>>>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>>>>> just works as expected. I don't have any permissions problems
>>>>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>>>>> build under Linux and those too worked without an issue.
>>>>>>>>
>>>>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>>>>> Can others please test this as well and provide some feedback?
>>>>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>>>>> else did?
>>>>>>>>
>>>>>>>>> Ate
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Marlon
>>>>>>>>
>>>>>>>>
>>>>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>>>>
>>>>>>>>>>>        [
>>>>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>>>>> ]
>>>>>>>>>>>
>>>>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>>>>> -------------------------------
>>>>>>>>>>>
>>>>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>>>>
>>>>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>>>>
>>>>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>>>>> release.
>>>>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>>>>
>>>>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>>>>> executed/run on a Linux environment?
>>>>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>>>>> is still set, etc.
>>>>>>>>>>>
>>>>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>>>>
>>>>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>>>>> be included in the demo distributions.
>>>>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Create automation for building of demo package
>>>>>>>>>>>> ----------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>>                    Key: RAVE-59
>>>>>>>>>>>>                    URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>>>>                Project: Rave
>>>>>>>>>>>>             Issue Type: Sub-task
>>>>>>>>>>>>               Reporter: Matt Franklin
>>>>>>>>>>>>               Assignee: Ate Douma
>>>>>>>>>>>>                Fix For: 0.1-INCUBATING
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> C
>>>>>>>>>>>
>>>>>>>>>>> -- 
>>>>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>>>>> For more information on JIRA, see:
>>>>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>>>>
>>>>>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+1lKAAoJEEfVXEODPFIDW9YH/3/8LXwUIUaAB9GnqVXGI0UV
jrEp74uebqYSCLWkgIzYr0wZLLxmbd60j+QS8E0us2C7pKdmgrn7SG8eb7yM8fu7
/c3s37vQTUOYHZ86Oe9oL+wPLQccRaTWZnrbqZOrr3STGVwO0S29VJie5bwBSrsh
BPNoLifiOzFNM+AT9JRmzEGFJcBcGpcLbHTeonWJukeQ0B87gHObfnLipu3FWEXe
k7BAtu51B/ne/J5a1EOScZxa6uX1ZsqB7mEwhmKcm70oVi3olcD3EjABahVoNekj
3i3QEfkBhaVWEbaN0Ixq8+cT0qS7ufWDomoCLi74JZgzJlhDH8+m/7VYUuVNt4E=
=GMCs
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ate, the permissions on your downloads are correct after I unpack them.  I did need to remove a "quarantine" @ bit, but this must be an artifact of the download process.

I also cleaned out my Mac's maven repository and rebuilt but still have the same permission problems (files have permissions 0204, directories have permissions 0341).


Marlon


On 6/17/11 7:43 AM, Ate Douma wrote:
> On 06/17/2011 03:36 AM, Marlon Pierce wrote:
> With jstl fixed, I just rebuilt successfully on linux but encountered a
> few other minor issues.
> 
> * On my linux server, the files have the correct read permissions (this
> is the problem on our macs). That is, everything looks the same as Ate's
> listing below.
>> OK.
>> Just for my sanity: you checked this on the files I provided or (also) on newly builds of your own?
> 
> 
> * However, we're missing a logs directory:
> 
> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
> touch: cannot touch
> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
> directory
> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
> directory
> 
>> Ah, good catch!
>> I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which doesn't has this problem...
> 
>> The missing logs folder is (another) quirk from the assembly-plugin which seems to skip the logs folder *because* its empty, but only because I've used an <exclude>*</exclude>. Which kind of makes sense, maybe.
> 
>> Anyway, I'll commit a fix shortly to remedy this.
> 
> 
> * The .zip version does have the correct .sh files.  I also rebuilt on
> my mac and found them.  So no problem here.
>> OK, good.
> 
> 
> * However, the .sh files in the .zip that I built on linux do not have
> executable permissions.  This is also true on my mac.
>> Hmm, weird differences again.
> 
>> On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain the execution bit for me.
>> But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.
> 
>> Which leaves the problem both you and Raminder experienced with the permissions on Mac which for both Jasha and myself it simply works fine.
> 
>> Could anyone else running a Mac please check this too and report if it works or not?
> 
>> Ate
> 
> 
> * And the .zip is also missing /logs/
> 
> 
> Marlon
> 
> 
> On 6/16/11 8:22 PM, Ate Douma wrote:
>>>> I again did a clean checkout, build and test on OS X using the latest
>>>> trunk and still have no permissions problems as you can see below:
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl
>>>> total 120760
>>>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl
>>>> total 120760
>>>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT
>>>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>>>> total 1216
>>>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>>>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>>>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>>>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>>>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>>>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>>>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>>>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>>>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>>>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>>>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>>>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>>>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>>>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>>>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>>>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>>>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>>>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>>>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>>>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>>>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>>>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>>>
>>>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>>>
>>>>
>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>>>
>>>>
>>>>
>>>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>>>
>>>>
>>>> Can you try them out and see if they work for you?
>>>> If they do, there must be something different during building on your
>>>> (and Raminder) machine. If these too fail, there must be something
>>>> different with the extraction process and/or (default) permissions on
>>>> your system.
>>>>
>>>> Both the .tar.gz and .zip should and do contain the same content.
>>>> The .zip archive is merely provided as convenience for Windows users
>>>> which often are not accustomed to tar.gz type archives.
>>>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>>>> should be retained even within .zip archives nowadays).
>>>>
>>>> Regards,
>>>>
>>>> Ate
>>>>
>>>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>>>> I just tried to build on a clean linux machine but the build failed:
>>>>
>>>> [ERROR] Failed to execute goal on project rave-portal: Could not
>>>> resolve dependencies for project
>>>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>>>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>>>> (http://download.java.net/maven/2/) ->   [Help 1]
>>>>
>>>> I'll file a Jira ticket.
>>>>
>>>> I get the permission problems with the .tar.gz on two different macs:
>>>>
>>>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>>>> total 121696
>>>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>>>> rave-0.1-incubating-SNAPSHOT
>>>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>>>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>>>
>>>>
>>>> and
>>>>
>>>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>>>> rave-0.1-incubating-SNAPSHOT/bin
>>>> total 1104
>>>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>>>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>>>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>>>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>>>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>>>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>>>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>>>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>>>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>>>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>>>> commons-daemon-native.tar.gz
>>>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>>>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>>>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>>>
>>>> Also, is it intended for the .zip file to have only .bat and not .sh
>>>> files? This is what I get (on mac again).
>>>>
>>>>
>>>> Marlon
>>>>
>>>>
>>>>
>>>>
>>>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>>>> have "read" permissions after I unpack it.
>>>>>>>
>>>>>>>> Hi Marlon,
>>>>>>>
>>>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>>>> just works as expected. I don't have any permissions problems
>>>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>>>> build under Linux and those too worked without an issue.
>>>>>>>
>>>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>>>> Can others please test this as well and provide some feedback?
>>>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>>>> else did?
>>>>>>>
>>>>>>>> Ate
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Marlon
>>>>>>>
>>>>>>>
>>>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>>>
>>>>>>>>>>        [
>>>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>>>> ]
>>>>>>>>>>
>>>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>>>> -------------------------------
>>>>>>>>>>
>>>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>>>
>>>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>>>
>>>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>>>> release.
>>>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>>>
>>>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>>>> executed/run on a Linux environment?
>>>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>>>> is still set, etc.
>>>>>>>>>>
>>>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>>>
>>>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>>>> be included in the demo distributions.
>>>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Create automation for building of demo package
>>>>>>>>>>> ----------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>>                    Key: RAVE-59
>>>>>>>>>>>                    URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>>>                Project: Rave
>>>>>>>>>>>             Issue Type: Sub-task
>>>>>>>>>>>               Reporter: Matt Franklin
>>>>>>>>>>>               Assignee: Ate Douma
>>>>>>>>>>>                Fix For: 0.1-INCUBATING
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> C
>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>>>> For more information on JIRA, see:
>>>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>>>
>>>>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+1D4AAoJEEfVXEODPFIDQ6oH/i75UCoe5eGPWPQUA4gBIcwa
1/J+Y1+gGhonDzfhYqJtoUH7FfpG0aIDgsWheIqlGPk53b/foUE+Z4X/Z3tvkmFo
kw0hFjOa/9DslwdW3gLyB3cCq1VP5Uv6I7YAy+V+uBlVJJAffHwstPFdmjg+bN3C
AF/X8kjfME63513y7jejDRWDeGO9RAcaZ9NfCOnbdht1DkHgWVtDqvPn/YG3OTYe
LEW9Ji2WwLcyHTlfLbAKOAePjSpTHeLLUfITZUALayGnn/wFlK/CTtF3wuDvA2qZ
o26qQE8s13lGBo0ZONAgGcb++rdmKkTPZut6HbC1drOQjOL0rCNCPJttLhuqLI4=
=B8Qp
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
On 06/17/2011 03:36 AM, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> With jstl fixed, I just rebuilt successfully on linux but encountered a
> few other minor issues.
>
> * On my linux server, the files have the correct read permissions (this
> is the problem on our macs). That is, everything looks the same as Ate's
> listing below.
OK.
Just for my sanity: you checked this on the files I provided or (also) on newly 
builds of your own?

>
> * However, we're missing a logs directory:
>
> [gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
> Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
> Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
> Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
> Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
> touch: cannot touch
> `/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
> directory
> /tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
> /tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
> directory

Ah, good catch!
I didn't encounter this one because I tend to use $ ./bin/catalina.sh run which 
doesn't has this problem...

The missing logs folder is (another) quirk from the assembly-plugin which seems 
to skip the logs folder *because* its empty, but only because I've used an 
<exclude>*</exclude>. Which kind of makes sense, maybe.

Anyway, I'll commit a fix shortly to remedy this.

>
> * The .zip version does have the correct .sh files.  I also rebuilt on
> my mac and found them.  So no problem here.
OK, good.

>
> * However, the .sh files in the .zip that I built on linux do not have
> executable permissions.  This is also true on my mac.
Hmm, weird differences again.

On both my OSX and Linux (Ubuntu) environments extracting the .zip does retain 
the execution bit for me.
But it isn't a real problem as on Linux/OSX people should use the .tar.gz anyway.

Which leaves the problem both you and Raminder experienced with the permissions 
on Mac which for both Jasha and myself it simply works fine.

Could anyone else running a Mac please check this too and report if it works or not?

Ate

>
> * And the .zip is also missing /logs/
>
>
> Marlon
>
>
> On 6/16/11 8:22 PM, Ate Douma wrote:
>> I again did a clean checkout, build and test on OS X using the latest
>> trunk and still have no permissions problems as you can see below:
>>
>> hal79-mac:ravetest ate$ ls -trl
>> total 120760
>> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>
>> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>
>> hal79-mac:ravetest ate$ ls -trl
>> total 120760
>> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
>> rave-0.1-incubating-SNAPSHOT
>> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>
>> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
>> total 1216
>> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
>> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
>> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
>> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
>> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
>> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
>> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
>> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
>> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
>> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
>> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
>> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
>> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
>> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
>> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
>> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
>> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
>> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
>> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
>> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
>> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
>> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
>>
>> I've uploaded both my .tar.gz and .zip archives on google docs here:
>>
>>
>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
>>
>>
>>
>> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
>>
>>
>> Can you try them out and see if they work for you?
>> If they do, there must be something different during building on your
>> (and Raminder) machine. If these too fail, there must be something
>> different with the extraction process and/or (default) permissions on
>> your system.
>>
>> Both the .tar.gz and .zip should and do contain the same content.
>> The .zip archive is merely provided as convenience for Windows users
>> which often are not accustomed to tar.gz type archives.
>> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
>> should be retained even within .zip archives nowadays).
>>
>> Regards,
>>
>> Ate
>>
>> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
>> I just tried to build on a clean linux machine but the build failed:
>>
>> [ERROR] Failed to execute goal on project rave-portal: Could not
>> resolve dependencies for project
>> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
>> find artifact javax.servlet:jstl:jar:1.2 in java.net
>> (http://download.java.net/maven/2/) ->   [Help 1]
>>
>> I'll file a Jira ticket.
>>
>> I get the permission problems with the .tar.gz on two different macs:
>>
>> 129-79-49-102:ravetest2 mpierce$ tar -zxf
>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>> 129-79-49-102:ravetest2 mpierce$ ls -trl
>> total 121696
>> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
>> rave-0.1-incubating-SNAPSHOT
>> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
>> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>>
>>
>> and
>>
>> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
>> rave-0.1-incubating-SNAPSHOT/bin
>> total 1104
>> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
>> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
>> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
>> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
>> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
>> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
>> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
>> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
>> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
>> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
>> commons-daemon-native.tar.gz
>> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
>> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
>> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>>
>> Also, is it intended for the .zip file to have only .bat and not .sh
>> files? This is what I get (on mac again).
>>
>>
>> Marlon
>>
>>
>>
>>
>> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>>> have "read" permissions after I unpack it.
>>>>>
>>>>>> Hi Marlon,
>>>>>
>>>>>> I just build the distributions natively under OS X but it all simply
>>>>>> just works as expected. I don't have any permissions problems
>>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>>> build under Linux and those too worked without an issue.
>>>>>
>>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>>> Can others please test this as well and provide some feedback?
>>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>>> else did?
>>>>>
>>>>>> Ate
>>>>>
>>>>>
>>>>>
>>>>> Marlon
>>>>>
>>>>>
>>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>>
>>>>>>>>        [
>>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>>> ]
>>>>>>>>
>>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>>> -------------------------------
>>>>>>>>
>>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>>
>>>>>>>> The distribution packages can be build from the rave-project
>>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>>
>>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>>> release.
>>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>>> rather make sure it can't happen anyway.
>>>>>>>>
>>>>>>>> Can everyone please test drive this, including building the
>>>>>>>> distributions on a Windows environment and verify if these
>>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>>> executed/run on a Linux environment?
>>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>>> is still set, etc.
>>>>>>>>
>>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>>
>>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>>> be included in the demo distributions.
>>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Create automation for building of demo package
>>>>>>>>> ----------------------------------------------
>>>>>>>>>
>>>>>>>>>                    Key: RAVE-59
>>>>>>>>>                    URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>>                Project: Rave
>>>>>>>>>             Issue Type: Sub-task
>>>>>>>>>               Reporter: Matt Franklin
>>>>>>>>>               Assignee: Ate Douma
>>>>>>>>>                Fix For: 0.1-INCUBATING
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> C
>>>>>>>>
>>>>>>>> --
>>>>>>>> This message is automatically generated by JIRA.
>>>>>>>> For more information on JIRA, see:
>>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>>
>>>>>>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+q+TAAoJEOEgD2XReDo5IK8H/RK7eM8IxflbkGIBeoMSzmrF
> 0Z5tIQSgO+aIn+CwTgnvhvcykcB75PCT3rUerailUhbcc6660aK9ln0+R6jnf0pw
> SbXeAyoP7lu2DyNk0DijPQoezgeOoIzowx5aKSPb0eJEg9HbGURX9ox/oO/sSjI7
> wrMQERwMJAa+WnjfuZR6N5M8I+hX4dQU0OUyRV7d2Rh3A24woSJUTQFojm+sgU8y
> a8lWFl4Mjzwcfwz5dOm93Z48t9sVVa31HQQDu7f+oV09KqasLR22IpJkiVVKrDJI
> nXFvsddeTD73DNYQSyaVRGLTdZNhn4MLEV3zG//BX4iR28eCCq825CwCcLpjhDY=
> =n3ad
> -----END PGP SIGNATURE-----


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With jstl fixed, I just rebuilt successfully on linux but encountered a
few other minor issues.

* On my linux server, the files have the correct read permissions (this
is the problem on our macs). That is, everything looks the same as Ate's
listing below.

* However, we're missing a logs directory:

[gateway@gridfarm018 rave-0.1-incubating-SNAPSHOT]$ ./bin/startup.sh
Using CATALINA_BASE:   /tmp/rave-0.1-incubating-SNAPSHOT
Using CATALINA_HOME:   /tmp/rave-0.1-incubating-SNAPSHOT
Using CATALINA_TMPDIR: /tmp/rave-0.1-incubating-SNAPSHOT/temp
Using JRE_HOME:        /globalhome/globalbin/jdk1.6.0_16/
Using CLASSPATH:       /tmp/rave-0.1-incubating-SNAPSHOT/bin/bootstrap.jar
touch: cannot touch
`/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out': No such file or
directory
/tmp/rave-0.1-incubating-SNAPSHOT/bin/catalina.sh: line 372:
/tmp/rave-0.1-incubating-SNAPSHOT/logs/catalina.out: No such file or
directory

* The .zip version does have the correct .sh files.  I also rebuilt on
my mac and found them.  So no problem here.

* However, the .sh files in the .zip that I built on linux do not have
executable permissions.  This is also true on my mac.

* And the .zip is also missing /logs/


Marlon


On 6/16/11 8:22 PM, Ate Douma wrote:
> I again did a clean checkout, build and test on OS X using the latest
> trunk and still have no permissions problems as you can see below:
> 
> hal79-mac:ravetest ate$ ls -trl
> total 120760
> -rw-r--r--  1 ate  staff  61825979 Jun 17 01:51
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 
> hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 
> hal79-mac:ravetest ate$ ls -trl
> total 120760
> drwxr-xr-x  12 ate  staff       408 Jun 17 01:51
> rave-0.1-incubating-SNAPSHOT
> -rw-r--r--   1 ate  staff  61825979 Jun 17 01:51
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 
> hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
> total 1216
> -rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
> -rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
> -rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
> -rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
> -rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
> -rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
> -rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
> -rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
> -rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
> -rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
> -rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
> -rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
> -rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
> -rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
> -rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
> -rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
> -rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
> -rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
> -rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
> -rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
> -rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
> -rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar
> 
> I've uploaded both my .tar.gz and .zip archives on google docs here:
> 
> 
> https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK
> 
> 
> 
> https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H
> 
> 
> Can you try them out and see if they work for you?
> If they do, there must be something different during building on your
> (and Raminder) machine. If these too fail, there must be something
> different with the extraction process and/or (default) permissions on
> your system.
> 
> Both the .tar.gz and .zip should and do contain the same content.
> The .zip archive is merely provided as convenience for Windows users
> which often are not accustomed to tar.gz type archives.
> BTW: the .zip can be used on Linux/Mac just as well (the execution bit
> should be retained even within .zip archives nowadays).
> 
> Regards,
> 
> Ate
> 
> On 06/16/2011 05:53 PM, Marlon Pierce wrote:
> I just tried to build on a clean linux machine but the build failed:
> 
> [ERROR] Failed to execute goal on project rave-portal: Could not
> resolve dependencies for project
> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not
> find artifact javax.servlet:jstl:jar:1.2 in java.net
> (http://download.java.net/maven/2/) ->  [Help 1]
> 
> I'll file a Jira ticket.
> 
> I get the permission problems with the .tar.gz on two different macs:
> 
> 129-79-49-102:ravetest2 mpierce$ tar -zxf
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 129-79-49-102:ravetest2 mpierce$ ls -trl
> total 121696
> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
> rave-0.1-incubating-SNAPSHOT
> -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 
> 
> and
> 
> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
> rave-0.1-incubating-SNAPSHOT/bin
> total 1104
> --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
> --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
> --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
> --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
> --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
> --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
> --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
> --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
> --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
> --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
> commons-daemon-native.tar.gz
> --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
> --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
> --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
> 
> Also, is it intended for the .zip file to have only .bat and not .sh
> files? This is what I get (on mac again).
> 
> 
> Marlon
> 
> 
> 
> 
> On 6/16/11 11:03 AM, Ate Douma wrote:
>>>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>>>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>>>> have "read" permissions after I unpack it.
>>>>
>>>>> Hi Marlon,
>>>>
>>>>> I just build the distributions natively under OS X but it all simply
>>>>> just works as expected. I don't have any permissions problems
>>>>> either. I tried also to extract the tar.gz and .zip archives which I
>>>>> build under Linux and those too worked without an issue.
>>>>
>>>>> Not sure therefore what exactly could be wrong on your environment.
>>>>> Can others please test this as well and provide some feedback?
>>>>> I haven't yet tried and tested on Windows either, but maybe someone
>>>>> else did?
>>>>
>>>>> Ate
>>>>
>>>>
>>>>
>>>> Marlon
>>>>
>>>>
>>>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>>>
>>>>>>>       [
>>>>>>> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569
>>>>>>> ]
>>>>>>>
>>>>>>> Ate Douma commented on RAVE-59:
>>>>>>> -------------------------------
>>>>>>>
>>>>>>> I've committed a basic working automation for building a Rave
>>>>>>> demo/bin distribution using maven-assembly-plugin and leveraging
>>>>>>> the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>>>
>>>>>>> The distribution packages can be build from the rave-project
>>>>>>> folder using the "dist" profile by running: $mvn -P dist
>>>>>>> This will enforce a maven clean + install and thereafter build a
>>>>>>> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>>>
>>>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin
>>>>>>> attaching of these "artifacts" to the project, meaning these will
>>>>>>> *not* be deployed to the remote maven repository (Nexus) during a
>>>>>>> release.
>>>>>>> You would need to specify -P dist anyway to get it to work, so in
>>>>>>> practice this is not really needed, but for sanity reasons I'd
>>>>>>> rather make sure it can't happen anyway.
>>>>>>>
>>>>>>> Can everyone please test drive this, including building the
>>>>>>> distributions on a Windows environment and verify if these
>>>>>>> distributions thereafter still are valid to be extracted and
>>>>>>> executed/run on a Linux environment?
>>>>>>> Specifically, please verify if the execution bit for shell scripts
>>>>>>> is still set, etc.
>>>>>>>
>>>>>>> Furthermore, and IMO more importantly, what needs to be done is
>>>>>>> providing the appropriate LICENSE and NOTICE files for the binary
>>>>>>> distributions (including the rave-shindig.war and rave-portal.war).
>>>>>>> I created a separate RAVE-63 issue for that.
>>>>>>>
>>>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the
>>>>>>> rave-project folder and a demo/bin specific README file, both to
>>>>>>> be included in the demo distributions.
>>>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Create automation for building of demo package
>>>>>>>> ----------------------------------------------
>>>>>>>>
>>>>>>>>                   Key: RAVE-59
>>>>>>>>                   URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>>>               Project: Rave
>>>>>>>>            Issue Type: Sub-task
>>>>>>>>              Reporter: Matt Franklin
>>>>>>>>              Assignee: Ate Douma
>>>>>>>>               Fix For: 0.1-INCUBATING
>>>>>>>>
>>>>>>>>
>>>>>>>> C
>>>>>>>
>>>>>>> -- 
>>>>>>> This message is automatically generated by JIRA.
>>>>>>> For more information on JIRA, see:
>>>>>>> http://www.atlassian.com/software/jira
>>>>>>>
>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+q+TAAoJEOEgD2XReDo5IK8H/RK7eM8IxflbkGIBeoMSzmrF
0Z5tIQSgO+aIn+CwTgnvhvcykcB75PCT3rUerailUhbcc6660aK9ln0+R6jnf0pw
SbXeAyoP7lu2DyNk0DijPQoezgeOoIzowx5aKSPb0eJEg9HbGURX9ox/oO/sSjI7
wrMQERwMJAa+WnjfuZR6N5M8I+hX4dQU0OUyRV7d2Rh3A24woSJUTQFojm+sgU8y
a8lWFl4Mjzwcfwz5dOm93Z48t9sVVa31HQQDu7f+oV09KqasLR22IpJkiVVKrDJI
nXFvsddeTD73DNYQSyaVRGLTdZNhn4MLEV3zG//BX4iR28eCCq825CwCcLpjhDY=
=n3ad
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
I again did a clean checkout, build and test on OS X using the latest trunk and 
still have no permissions problems as you can see below:

hal79-mac:ravetest ate$ ls -trl
total 120760
-rw-r--r--  1 ate  staff  61825979 Jun 17 01:51 
rave-0.1-incubating-SNAPSHOT-bin.tar.gz

hal79-mac:ravetest ate$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz

hal79-mac:ravetest ate$ ls -trl
total 120760
drwxr-xr-x  12 ate  staff       408 Jun 17 01:51 rave-0.1-incubating-SNAPSHOT
-rw-r--r--   1 ate  staff  61825979 Jun 17 01:51 
rave-0.1-incubating-SNAPSHOT-bin.tar.gz

hal79-mac:ravetest ate$ ls -trl rave-0.1-incubating-SNAPSHOT/bin
total 1216
-rwxr-xr-x  1 ate  staff     853 Jun 15 01:34 setenv.sh
-rw-r--r--  1 ate  staff     891 Jun 16 22:58 setenv.bat
-rwxr-xr-x  1 ate  staff    1567 Jun 17 01:51 version.sh
-rw-r--r--  1 ate  staff    2113 Jun 17 01:51 version.bat
-rwxr-xr-x  1 ate  staff    3472 Jun 17 01:51 tool-wrapper.sh
-rw-r--r--  1 ate  staff    3479 Jun 17 01:51 tool-wrapper.bat
-rw-r--r--  1 ate  staff  241274 Jun 17 01:51 tomcat-native.tar.gz
-rw-r--r--  1 ate  staff   26532 Jun 17 01:51 tomcat-juli.jar
-rwxr-xr-x  1 ate  staff    1956 Jun 17 01:51 startup.sh
-rw-r--r--  1 ate  staff    2109 Jun 17 01:51 startup.bat
-rwxr-xr-x  1 ate  staff    1563 Jun 17 01:51 shutdown.sh
-rw-r--r--  1 ate  staff    2108 Jun 17 01:51 shutdown.bat
-rwxr-xr-x  1 ate  staff    4114 Jun 17 01:51 setclasspath.sh
-rw-r--r--  1 ate  staff    3150 Jun 17 01:51 setclasspath.bat
-rwxr-xr-x  1 ate  staff    1624 Jun 17 01:51 digest.sh
-rw-r--r--  1 ate  staff    2108 Jun 17 01:51 digest.bat
-rw-r--r--  1 ate  staff    1342 Jun 17 01:51 cpappend.bat
-rw-r--r--  1 ate  staff   23546 Jun 17 01:51 commons-daemon.jar
-rw-r--r--  1 ate  staff  199453 Jun 17 01:51 commons-daemon-native.tar.gz
-rwxr-xr-x  1 ate  staff   17592 Jun 17 01:51 catalina.sh
-rw-r--r--  1 ate  staff   11797 Jun 17 01:51 catalina.bat
-rw-r--r--  1 ate  staff    2374 Jun 17 01:51 catalina-tasks.xml
-rw-r--r--  1 ate  staff   22226 Jun 17 01:51 bootstrap.jar

I've uploaded both my .tar.gz and .zip archives on google docs here:

 
https://docs.google.com/leaf?id=0B6BPc1fPmqgSYWY5NzRhMjAtODEwOC00NWIwLWI0MGUtNDhjYzQ5ZThjYTdm&authkey=CPeR5pAK

 
https://docs.google.com/leaf?id=0B6BPc1fPmqgSNTY2ZjExZWQtNzIxNy00OWYxLWI5YzYtODE4NzNlYTVhOGIx&authkey=CPfMlI8H

Can you try them out and see if they work for you?
If they do, there must be something different during building on your (and 
Raminder) machine. If these too fail, there must be something different with the 
extraction process and/or (default) permissions on your system.

Both the .tar.gz and .zip should and do contain the same content.
The .zip archive is merely provided as convenience for Windows users which often 
are not accustomed to tar.gz type archives.
BTW: the .zip can be used on Linux/Mac just as well (the execution bit should be 
retained even within .zip archives nowadays).

Regards,

Ate

On 06/16/2011 05:53 PM, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I just tried to build on a clean linux machine but the build failed:
>
> [ERROR] Failed to execute goal on project rave-portal: Could not resolve dependencies for project org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not find artifact javax.servlet:jstl:jar:1.2 in java.net (http://download.java.net/maven/2/) ->  [Help 1]
>
> I'll file a Jira ticket.
>
> I get the permission problems with the .tar.gz on two different macs:
>
> 129-79-49-102:ravetest2 mpierce$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 129-79-49-102:ravetest2 mpierce$ ls -trl
> total 121696
> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46 rave-0.1-incubating-SNAPSHOT
> - -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48 rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>
>
> and
>
> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl rave-0.1-incubating-SNAPSHOT/bin
> total 1104
> - --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
> - --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
> - --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
> - --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
> - --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
> - --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
> - --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
> - --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
> - --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
> - --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
> - --w----r--  1 mpierce  wheel  199453 Jun 16 11:46 commons-daemon-native.tar.gz
> - --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
> - --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
> - --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>
> Also, is it intended for the .zip file to have only .bat and not .sh files? This is what I get (on mac again).
>
>
> Marlon
>
>
>
>
> On 6/16/11 11:03 AM, Ate Douma wrote:
>> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
>> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
>> have "read" permissions after I unpack it.
>>
>>> Hi Marlon,
>>
>>> I just build the distributions natively under OS X but it all simply just works as expected. I don't have any permissions problems either. I tried also to extract the tar.gz and .zip archives which I build under Linux and those too worked without an issue.
>>
>>> Not sure therefore what exactly could be wrong on your environment.
>>> Can others please test this as well and provide some feedback?
>>> I haven't yet tried and tested on Windows either, but maybe someone else did?
>>
>>> Ate
>>
>>
>>
>> Marlon
>>
>>
>> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>>
>>>>>       [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ]
>>>>>
>>>>> Ate Douma commented on RAVE-59:
>>>>> -------------------------------
>>>>>
>>>>> I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>>
>>>>> The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
>>>>> This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>>
>>>>> Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
>>>>> You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.
>>>>>
>>>>> Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
>>>>> Specifically, please verify if the execution bit for shell scripts is still set, etc.
>>>>>
>>>>> Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
>>>>> I created a separate RAVE-63 issue for that.
>>>>>
>>>>> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
>>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>>
>>>>>
>>>>>
>>>>>> Create automation for building of demo package
>>>>>> ----------------------------------------------
>>>>>>
>>>>>>                   Key: RAVE-59
>>>>>>                   URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>>               Project: Rave
>>>>>>            Issue Type: Sub-task
>>>>>>              Reporter: Matt Franklin
>>>>>>              Assignee: Ate Douma
>>>>>>               Fix For: 0.1-INCUBATING
>>>>>>
>>>>>>
>>>>>> C
>>>>>
>>>>> --
>>>>> This message is automatically generated by JIRA.
>>>>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>>>>
>>>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+ib0AAoJEEfVXEODPFIDfzwH/jtSPeqi50LidRDqieW0xU8y
> /HWxnyyZ9KvqQwjO4NAfJt7yXTKtgD2NDLIvSumn5Six6FPXm1K1ASqnC3zFEvZa
> HdgaYMjrpxFW2xA4PHaYQ7SDwRBSOWu0b5xv/SxtzHfBqCSfpBSdGwT3dFVTLF0v
> xNyItyoqpFIW/syKhHK4CDbpUS0Iqg90UsG5u40FdjnQVd5DiW+ASDuaPqwtSFoh
> 9oRrcujb2o33o5yM6SVEfaHqnnuhXC8WK3tXiL6Q+mpdyNBK4r5IFBvgIXZwTe35
> G4avJSAU97+TG36bYY+BZFTG/ycKG30bfEBSHJtvhT+7k11riD6tvtARgDU4Wik=
> =zpWv
> -----END PGP SIGNATURE-----


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Jasha Joachimsthal <j....@onehippo.com>.
Hi Marlon,

unpacking the tar.gz on my mac using the same command as you leads to the
following listing:
Jasha-heeft-een-MacBook-Pro:tmp jashaj$ cd rave-0.1-incubating-SNAPSHOT/bin/
Jasha-heeft-een-MacBook-Pro:bin jashaj$ ls -la
total 1216
drwxr-xr-x  25 jashaj  wheel     850 16 jun 19:07 .
drwxr-xr-x  12 jashaj  wheel     408 16 jun 18:45 ..
-rw-r--r--   1 jashaj  wheel   22226 16 jun 18:45 bootstrap.jar
-rw-r--r--   1 jashaj  wheel    2374 16 jun 18:45 catalina-tasks.xml
-rw-r--r--   1 jashaj  wheel   11797 16 jun 18:45 catalina.bat
-rwxr-xr-x   1 jashaj  wheel   17592 16 jun 18:45 catalina.sh
-rw-r--r--   1 jashaj  wheel  199453 16 jun 18:45
commons-daemon-native.tar.gz
-rw-r--r--   1 jashaj  wheel   23546 16 jun 18:45 commons-daemon.jar
-rw-r--r--   1 jashaj  wheel    1342 16 jun 18:45 cpappend.bat
-rw-r--r--   1 jashaj  wheel    2108 16 jun 18:45 digest.bat
-rwxr-xr-x   1 jashaj  wheel    1624 16 jun 18:45 digest.sh
-rw-r--r--   1 jashaj  wheel    3150 16 jun 18:45 setclasspath.bat
-rwxr-xr-x   1 jashaj  wheel    4114 16 jun 18:45 setclasspath.sh
-rw-r--r--   1 jashaj  wheel     876 15 jun 14:01 setenv.bat
-rwxr-xr-x   1 jashaj  wheel     853 15 jun 14:01 setenv.sh
-rw-r--r--   1 jashaj  wheel    2108 16 jun 18:45 shutdown.bat
-rwxr-xr-x   1 jashaj  wheel    1563 16 jun 18:45 shutdown.sh
-rw-r--r--   1 jashaj  wheel    2109 16 jun 18:45 startup.bat
-rwxr-xr-x   1 jashaj  wheel    1956 16 jun 18:45 startup.sh
-rw-r--r--   1 jashaj  wheel   26532 16 jun 18:45 tomcat-juli.jar
-rw-r--r--   1 jashaj  wheel  241274 16 jun 18:45 tomcat-native.tar.gz
-rw-r--r--   1 jashaj  wheel    3479 16 jun 18:45 tool-wrapper.bat
-rwxr-xr-x   1 jashaj  wheel    3472 16 jun 18:45 tool-wrapper.sh
-rw-r--r--   1 jashaj  wheel    2113 16 jun 18:45 version.bat
-rwxr-xr-x   1 jashaj  wheel    1567 16 jun 18:45 version.sh


Jasha Joachimsthal

Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

www.onehippo.com


On 16 June 2011 17:53, Marlon Pierce <mp...@cs.indiana.edu> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I just tried to build on a clean linux machine but the build failed:
>
> [ERROR] Failed to execute goal on project rave-portal: Could not resolve
> dependencies for project
> org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not find
> artifact javax.servlet:jstl:jar:1.2 in java.net (
> http://download.java.net/maven/2/) -> [Help 1]
>
> I'll file a Jira ticket.
>
> I get the permission problems with the .tar.gz on two different macs:
>
> 129-79-49-102:ravetest2 mpierce$ tar -zxf
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
> 129-79-49-102:ravetest2 mpierce$ ls -trl
> total 121696
> d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46
> rave-0.1-incubating-SNAPSHOT
> - -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48
> rave-0.1-incubating-SNAPSHOT-bin.tar.gz
>
>
> and
>
> 129-79-49-102:ravetest2 mpierce$ sudo ls -trl
> rave-0.1-incubating-SNAPSHOT/bin
> total 1104
> - --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
> - --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
> - --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
> - --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
> - --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
> - --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
> - --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
> - --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
> - --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
> - --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
> - --w----r--  1 mpierce  wheel  199453 Jun 16 11:46
> commons-daemon-native.tar.gz
> - --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
> - --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
> - --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar
>
> Also, is it intended for the .zip file to have only .bat and not .sh files?
> This is what I get (on mac again).
>
>
> Marlon
>
>
>
>
> On 6/16/11 11:03 AM, Ate Douma wrote:
> > On 06/15/2011 04:19 AM, Marlon Pierce wrote:
> > Permissions of the .tar.gz are screwy on my mac: the directory doesn't
> > have "read" permissions after I unpack it.
> >
> >> Hi Marlon,
> >
> >> I just build the distributions natively under OS X but it all simply
> just works as expected. I don't have any permissions problems either. I
> tried also to extract the tar.gz and .zip archives which I build under Linux
> and those too worked without an issue.
> >
> >> Not sure therefore what exactly could be wrong on your environment.
> >> Can others please test this as well and provide some feedback?
> >> I haven't yet tried and tested on Windows either, but maybe someone else
> did?
> >
> >> Ate
> >
> >
> >
> > Marlon
> >
> >
> > On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
> >>>>
> >>>>      [
> https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569]
> >>>>
> >>>> Ate Douma commented on RAVE-59:
> >>>> -------------------------------
> >>>>
> >>>> I've committed a basic working automation for building a Rave demo/bin
> distribution using maven-assembly-plugin and leveraging the cargo plugin to
> setup and pre-deployed rave portal on Tomcat.
> >>>>
> >>>> The distribution packages can be build from the rave-project folder
> using the "dist" profile by running: $mvn -P dist
> >>>> This will enforce a maven clean + install and thereafter build a
> rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
> >>>> Note: these artifacts are build in the rave-portal/target directory!
> >>>>
> >>>> Furthermore, I disabled the default enabled maven-assembly-plugin
> attaching of these "artifacts" to the project, meaning these will *not* be
> deployed to the remote maven repository (Nexus) during a release.
> >>>> You would need to specify -P dist anyway to get it to work, so in
> practice this is not really needed, but for sanity reasons I'd rather make
> sure it can't happen anyway.
> >>>>
> >>>> Can everyone please test drive this, including building the
> distributions on a Windows environment and verify if these distributions
> thereafter still are valid to be extracted and executed/run on a Linux
> environment?
> >>>> Specifically, please verify if the execution bit for shell scripts is
> still set, etc.
> >>>>
> >>>> Furthermore, and IMO more importantly, what needs to be done is
> providing the appropriate LICENSE and NOTICE files for the binary
> distributions (including the rave-shindig.war and rave-portal.war).
> >>>> I created a separate RAVE-63 issue for that.
> >>>>
> >>>> Finally, I've provided basic/skeleton CHANGELOG file in the
> rave-project folder and a demo/bin specific README file, both to be included
> in the demo distributions.
> >>>> These also need to be filled in, for which I created issue RAVE-64
> >>>>
> >>>>
> >>>>
> >>>>> Create automation for building of demo package
> >>>>> ----------------------------------------------
> >>>>>
> >>>>>                  Key: RAVE-59
> >>>>>                  URL: https://issues.apache.org/jira/browse/RAVE-59
> >>>>>              Project: Rave
> >>>>>           Issue Type: Sub-task
> >>>>>             Reporter: Matt Franklin
> >>>>>             Assignee: Ate Douma
> >>>>>              Fix For: 0.1-INCUBATING
> >>>>>
> >>>>>
> >>>>> C
> >>>>
> >>>> --
> >>>> This message is automatically generated by JIRA.
> >>>> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> >>>>
> >>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+ib0AAoJEEfVXEODPFIDfzwH/jtSPeqi50LidRDqieW0xU8y
> /HWxnyyZ9KvqQwjO4NAfJt7yXTKtgD2NDLIvSumn5Six6FPXm1K1ASqnC3zFEvZa
> HdgaYMjrpxFW2xA4PHaYQ7SDwRBSOWu0b5xv/SxtzHfBqCSfpBSdGwT3dFVTLF0v
> xNyItyoqpFIW/syKhHK4CDbpUS0Iqg90UsG5u40FdjnQVd5DiW+ASDuaPqwtSFoh
> 9oRrcujb2o33o5yM6SVEfaHqnnuhXC8WK3tXiL6Q+mpdyNBK4r5IFBvgIXZwTe35
> G4avJSAU97+TG36bYY+BZFTG/ycKG30bfEBSHJtvhT+7k11riD6tvtARgDU4Wik=
> =zpWv
> -----END PGP SIGNATURE-----
>

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just tried to build on a clean linux machine but the build failed:

[ERROR] Failed to execute goal on project rave-portal: Could not resolve dependencies for project org.apache.rave:rave-portal:war:0.1-incubating-SNAPSHOT: Could not find artifact javax.servlet:jstl:jar:1.2 in java.net (http://download.java.net/maven/2/) -> [Help 1]

I'll file a Jira ticket.

I get the permission problems with the .tar.gz on two different macs:

129-79-49-102:ravetest2 mpierce$ tar -zxf rave-0.1-incubating-SNAPSHOT-bin.tar.gz 
129-79-49-102:ravetest2 mpierce$ ls -trl
total 121696
d-wxr----x  7 mpierce  wheel       238 Jun 16 11:46 rave-0.1-incubating-SNAPSHOT
- -rw-r--r--  1 mpierce  wheel  62306184 Jun 16 11:48 rave-0.1-incubating-SNAPSHOT-bin.tar.gz


and 

129-79-49-102:ravetest2 mpierce$ sudo ls -trl rave-0.1-incubating-SNAPSHOT/bin
total 1104
- --w----r--  1 mpierce  wheel    2113 Jun 16 11:46 version.bat
- --w----r--  1 mpierce  wheel    3479 Jun 16 11:46 tool-wrapper.bat
- --w----r--  1 mpierce  wheel  241274 Jun 16 11:46 tomcat-native.tar.gz
- --w----r--  1 mpierce  wheel   26532 Jun 16 11:46 tomcat-juli.jar
- --w----r--  1 mpierce  wheel    2109 Jun 16 11:46 startup.bat
- --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 shutdown.bat
- --w----r--  1 mpierce  wheel    3150 Jun 16 11:46 setclasspath.bat
- --w----r--  1 mpierce  wheel    2108 Jun 16 11:46 digest.bat
- --w----r--  1 mpierce  wheel    1342 Jun 16 11:46 cpappend.bat
- --w----r--  1 mpierce  wheel   23546 Jun 16 11:46 commons-daemon.jar
- --w----r--  1 mpierce  wheel  199453 Jun 16 11:46 commons-daemon-native.tar.gz
- --w----r--  1 mpierce  wheel   11797 Jun 16 11:46 catalina.bat
- --w----r--  1 mpierce  wheel    2374 Jun 16 11:46 catalina-tasks.xml
- --w----r--  1 mpierce  wheel   22226 Jun 16 11:46 bootstrap.jar

Also, is it intended for the .zip file to have only .bat and not .sh files? This is what I get (on mac again).


Marlon




On 6/16/11 11:03 AM, Ate Douma wrote:
> On 06/15/2011 04:19 AM, Marlon Pierce wrote:
> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
> have "read" permissions after I unpack it.
> 
>> Hi Marlon,
> 
>> I just build the distributions natively under OS X but it all simply just works as expected. I don't have any permissions problems either. I tried also to extract the tar.gz and .zip archives which I build under Linux and those too worked without an issue.
> 
>> Not sure therefore what exactly could be wrong on your environment.
>> Can others please test this as well and provide some feedback?
>> I haven't yet tried and tested on Windows either, but maybe someone else did?
> 
>> Ate
> 
> 
> 
> Marlon
> 
> 
> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>>>
>>>>      [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ]
>>>>
>>>> Ate Douma commented on RAVE-59:
>>>> -------------------------------
>>>>
>>>> I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>>>
>>>> The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
>>>> This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>>>> Note: these artifacts are build in the rave-portal/target directory!
>>>>
>>>> Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
>>>> You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.
>>>>
>>>> Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
>>>> Specifically, please verify if the execution bit for shell scripts is still set, etc.
>>>>
>>>> Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
>>>> I created a separate RAVE-63 issue for that.
>>>>
>>>> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
>>>> These also need to be filled in, for which I created issue RAVE-64
>>>>
>>>>
>>>>
>>>>> Create automation for building of demo package
>>>>> ----------------------------------------------
>>>>>
>>>>>                  Key: RAVE-59
>>>>>                  URL: https://issues.apache.org/jira/browse/RAVE-59
>>>>>              Project: Rave
>>>>>           Issue Type: Sub-task
>>>>>             Reporter: Matt Franklin
>>>>>             Assignee: Ate Douma
>>>>>              Fix For: 0.1-INCUBATING
>>>>>
>>>>>
>>>>> C
>>>>
>>>> -- 
>>>> This message is automatically generated by JIRA.
>>>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>>>
>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+ib0AAoJEEfVXEODPFIDfzwH/jtSPeqi50LidRDqieW0xU8y
/HWxnyyZ9KvqQwjO4NAfJt7yXTKtgD2NDLIvSumn5Six6FPXm1K1ASqnC3zFEvZa
HdgaYMjrpxFW2xA4PHaYQ7SDwRBSOWu0b5xv/SxtzHfBqCSfpBSdGwT3dFVTLF0v
xNyItyoqpFIW/syKhHK4CDbpUS0Iqg90UsG5u40FdjnQVd5DiW+ASDuaPqwtSFoh
9oRrcujb2o33o5yM6SVEfaHqnnuhXC8WK3tXiL6Q+mpdyNBK4r5IFBvgIXZwTe35
G4avJSAU97+TG36bYY+BZFTG/ycKG30bfEBSHJtvhT+7k11riD6tvtARgDU4Wik=
=zpWv
-----END PGP SIGNATURE-----

Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
On 06/15/2011 04:19 AM, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
> have "read" permissions after I unpack it.

Hi Marlon,

I just build the distributions natively under OS X but it all simply just works 
as expected. I don't have any permissions problems either. I tried also to 
extract the tar.gz and .zip archives which I build under Linux and those too 
worked without an issue.

Not sure therefore what exactly could be wrong on your environment.
Can others please test this as well and provide some feedback?
I haven't yet tried and tested on Windows either, but maybe someone else did?

Ate

>
>
> Marlon
>
>
> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>
>>      [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ]
>>
>> Ate Douma commented on RAVE-59:
>> -------------------------------
>>
>> I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>
>> The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
>> This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>> Note: these artifacts are build in the rave-portal/target directory!
>>
>> Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
>> You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.
>>
>> Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
>> Specifically, please verify if the execution bit for shell scripts is still set, etc.
>>
>> Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
>> I created a separate RAVE-63 issue for that.
>>
>> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
>> These also need to be filled in, for which I created issue RAVE-64
>>
>>
>>
>>> Create automation for building of demo package
>>> ----------------------------------------------
>>>
>>>                  Key: RAVE-59
>>>                  URL: https://issues.apache.org/jira/browse/RAVE-59
>>>              Project: Rave
>>>           Issue Type: Sub-task
>>>             Reporter: Matt Franklin
>>>             Assignee: Ate Douma
>>>              Fix For: 0.1-INCUBATING
>>>
>>>
>>> C
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+BaVAAoJEOEgD2XReDo5pE4H/33R6afHEx47xorNG1V93Khm
> SEu0V1cOJGk5FICVu35BV/7Z12o/PXwC7Iw0WXPFQB/3WHebCGC1v6EwIBgqM6Nn
> JLOot1HrVh6mhiypa8Z9LALDzShNsQAdpuXOf7zZZyDQs7agPOi7ca/ePEB5Qrx9
> kbq0kE4BWZFb/XOfiRvEtlpdi4NWZTJJapkdHoqWNHfijBicGEwzJ+QZXL7sYXHO
> lz5aMj91llk8PPBExrLwV1PNe9MBbrBG1ZoaYlSal7R/E297rX+YFODc+Pil5646
> +uiSwHjakzEz2DHJA8t053nOzcUIOSwn9rnKZQJKPcNV2kO0MJNYt8vV/Nbw0Eo=
> =jM2S
> -----END PGP SIGNATURE-----


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Ate Douma <at...@douma.nu>.
On 06/15/2011 04:19 AM, Marlon Pierce wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Permissions of the .tar.gz are screwy on my mac: the directory doesn't
> have "read" permissions after I unpack it.
>
Ugh. I was afraid something like that might be an issue (assembly-plugin 
filemode handling seems quite broken). Just didn't expect it to break on Mac :)

I'm actually have a MacBookPro but using Ubuntu natively :)
I guess I have to temporarily switch back to OSX now to try fix this...

Thanks,

Ate

>
> Marlon
>
>
> On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
>>
>>      [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ]
>>
>> Ate Douma commented on RAVE-59:
>> -------------------------------
>>
>> I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.
>>
>> The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
>> This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
>> Note: these artifacts are build in the rave-portal/target directory!
>>
>> Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
>> You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.
>>
>> Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
>> Specifically, please verify if the execution bit for shell scripts is still set, etc.
>>
>> Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
>> I created a separate RAVE-63 issue for that.
>>
>> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
>> These also need to be filled in, for which I created issue RAVE-64
>>
>>
>>
>>> Create automation for building of demo package
>>> ----------------------------------------------
>>>
>>>                  Key: RAVE-59
>>>                  URL: https://issues.apache.org/jira/browse/RAVE-59
>>>              Project: Rave
>>>           Issue Type: Sub-task
>>>             Reporter: Matt Franklin
>>>             Assignee: Ate Douma
>>>              Fix For: 0.1-INCUBATING
>>>
>>>
>>> C
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+BaVAAoJEOEgD2XReDo5pE4H/33R6afHEx47xorNG1V93Khm
> SEu0V1cOJGk5FICVu35BV/7Z12o/PXwC7Iw0WXPFQB/3WHebCGC1v6EwIBgqM6Nn
> JLOot1HrVh6mhiypa8Z9LALDzShNsQAdpuXOf7zZZyDQs7agPOi7ca/ePEB5Qrx9
> kbq0kE4BWZFb/XOfiRvEtlpdi4NWZTJJapkdHoqWNHfijBicGEwzJ+QZXL7sYXHO
> lz5aMj91llk8PPBExrLwV1PNe9MBbrBG1ZoaYlSal7R/E297rX+YFODc+Pil5646
> +uiSwHjakzEz2DHJA8t053nOzcUIOSwn9rnKZQJKPcNV2kO0MJNYt8vV/Nbw0Eo=
> =jM2S
> -----END PGP SIGNATURE-----


Re: [jira] [Commented] (RAVE-59) Create automation for building of demo package

Posted by Marlon Pierce <mp...@cs.indiana.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Permissions of the .tar.gz are screwy on my mac: the directory doesn't
have "read" permissions after I unpack it.


Marlon


On 6/14/11 9:52 PM, Ate Douma (JIRA) wrote:
> 
>     [ https://issues.apache.org/jira/browse/RAVE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049569#comment-13049569 ] 
> 
> Ate Douma commented on RAVE-59:
> -------------------------------
> 
> I've committed a basic working automation for building a Rave demo/bin distribution using maven-assembly-plugin and leveraging the cargo plugin to setup and pre-deployed rave portal on Tomcat.
> 
> The distribution packages can be build from the rave-project folder using the "dist" profile by running: $mvn -P dist
> This will enforce a maven clean + install and thereafter build a rave-<version>-bin.tar.gz and rave-<version>-bin.zip archive.
> Note: these artifacts are build in the rave-portal/target directory!
> 
> Furthermore, I disabled the default enabled maven-assembly-plugin attaching of these "artifacts" to the project, meaning these will *not* be deployed to the remote maven repository (Nexus) during a release.
> You would need to specify -P dist anyway to get it to work, so in practice this is not really needed, but for sanity reasons I'd rather make sure it can't happen anyway.
> 
> Can everyone please test drive this, including building the distributions on a Windows environment and verify if these distributions thereafter still are valid to be extracted and executed/run on a Linux environment?
> Specifically, please verify if the execution bit for shell scripts is still set, etc.
>   
> Furthermore, and IMO more importantly, what needs to be done is providing the appropriate LICENSE and NOTICE files for the binary distributions (including the rave-shindig.war and rave-portal.war).
> I created a separate RAVE-63 issue for that.
> 
> Finally, I've provided basic/skeleton CHANGELOG file in the rave-project folder and a demo/bin specific README file, both to be included in the demo distributions.
> These also need to be filled in, for which I created issue RAVE-64
>  
> 
> 
>> Create automation for building of demo package
>> ----------------------------------------------
>>
>>                 Key: RAVE-59
>>                 URL: https://issues.apache.org/jira/browse/RAVE-59
>>             Project: Rave
>>          Issue Type: Sub-task
>>            Reporter: Matt Franklin
>>            Assignee: Ate Douma
>>             Fix For: 0.1-INCUBATING
>>
>>
>> C
> 
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 
>         
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN+BaVAAoJEOEgD2XReDo5pE4H/33R6afHEx47xorNG1V93Khm
SEu0V1cOJGk5FICVu35BV/7Z12o/PXwC7Iw0WXPFQB/3WHebCGC1v6EwIBgqM6Nn
JLOot1HrVh6mhiypa8Z9LALDzShNsQAdpuXOf7zZZyDQs7agPOi7ca/ePEB5Qrx9
kbq0kE4BWZFb/XOfiRvEtlpdi4NWZTJJapkdHoqWNHfijBicGEwzJ+QZXL7sYXHO
lz5aMj91llk8PPBExrLwV1PNe9MBbrBG1ZoaYlSal7R/E297rX+YFODc+Pil5646
+uiSwHjakzEz2DHJA8t053nOzcUIOSwn9rnKZQJKPcNV2kO0MJNYt8vV/Nbw0Eo=
=jM2S
-----END PGP SIGNATURE-----