Originally created by: yian...@seleucus.net
Originally owned by: yian...@seleucus.net
There is no task within the ant build.xml script to release the final zip file of the software.
Create a task within ant that is dependant on archive,archive-client,archive-server and proceeds to package up all corresponding jar files into a single zip file.
The name of the file should be: webspa-xx.zip where xx = app.version .
Make sure that the documentation pdf files contained within the doc/guides directory are also included.
Finally, create a corresponding README.txt within the root directory of the zip file that contains information about the different jars and documentation. Include the README.txt inside doc/readme directory of the svn repo.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: yian...@seleucus.net
Re-assigning this issue.
Owner: yian...@seleucus.net
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: yian...@seleucus.net
The following set of commands need to be automated for a release zip file to be created:
388 cd /tmp
394 mkdir web-spa-0.6
395 cp -v /Users/yiannis/Developer/web-spa/java/target/web-spa-0.6-SNAPSHOT.jar /tmp/web-spa-0.6/web-spa-0.6.jar
396 cp -R /Users/yiannis/Developer/web-spa/java/src/ /tmp/web-spa-0.6/src
397 find /tmp/web-spa-0.6/src/ -iname .src -exec rm -frv {} \;
398 find /tmp/web-spa-0.6/src/ -iname .DS_Store -exec rm -frv {} \;
399 cp -v /Users/yiannis/Developer/web-spa/java/release/INSTALL /tmp/web-spa-0.6/
400 cp -v /Users/yiannis/Developer/web-spa/java/release/LICENSE /tmp/web-spa-0.6/
401 cp -v /Users/yiannis/Developer/web-spa/java/release/README /tmp/web-spa-0.6/
402 cp -v /Users/yiannis/Developer/web-spa/java/release/web-spa.sh /tmp/web-spa-0.6/
403 mkdir -v web-spa-0.6/docs
404 cp -v /Users/yiannis/Developer/web-spa/documentation/05-specification-guide/00-web-spa-specification-guide.pdf /tmp/web-spa-0.6/docs/
405 cp -v /Users/yiannis/Developer/web-spa/documentation/06-user-guide/00-web-spa-user-guide.pdf /tmp/web-spa-0.6/docs/
406 cp -v /Users/yiannis/Developer/web-spa/documentation/07-admin-guide/00-web-spa-administration-guide.pdf /tmp/web-spa-0.6/docs/
407 zip -r webspa-06.zip web-spa-0.6
Summary: Create maven build task for release
Cc: oli...@seleucus.net
Diff:
I intend to spend some time with Joel on this story, as the current download has one or two __MACOSX, .DS_Store and the like.
This ticket is from the era that WebSpa used Ant instead of Maven, please ignore all references to ant. The list of O/S commands that need to be automated into an ant goal can be found below (this is from version 0.5):
508 mkdir /tmp/_r0.5
509 cd java
510 mvn clean package
511 mv target/web-spa-0.5-SNAPSHOT.jar /tmp/_r0.5/
512 cp release/INSTALL /tmp/_r0.5/
513 cp release/README /tmp/_r0.5/
514 cp release/LICENSE /tmp/_r0.5/
515 cp ../documentation/05-specification-guide/00-web-spa-specification-guide.pdf /tmp/_r0.5/
516 cp ../documentation/06-user-guide/00-web-spa-user-guide.pdf /tmp/_r0.5/
517 cp ../documentation/07-admin-guide/00-web-spa-administration-guide.pdf /tmp/_r0.5/
518 cd /tmp/_r0.5/
520 mkdir /tmp/_r0.5/doc
521 mv 00-web-spa-* /tmp/_r0.5/doc/
522 ls -l
523 cp -R /Users/yiannis/Developer/web-spa/java/src/ /tmp/_r0.5/src
524 ls -l
525 find /tmp/_r0.5/src/ -iname .src -exec rm -frv {} \;
526 ls -ltrR src/
527 ls -ltrR /tmp/_r0.5/src/
528 find /tmp/_r0.5/src/ -name .src -exec rm -frv {} \;
529 ls -altrR /tmp/_r0.5/src/
530 clear
531 ls -l
532 mv web-spa-0.5-SNAPSHOT.jar web-spa-0.5.jar
533 ls -l
534 zip webspa-05.zip INSTALL LICENSE README doc src web-spa-0.5.jar
535 ls -l
536 mv webspa-05.zip /Users/yiannis/Downloads/
537 zip -r webspa-05.zip INSTALL LICENSE README doc src web-spa-0.5.jar
538 mv webspa-05.zip /Users/yiannis/Downloads/
539 cd ..
540 ls -l
541 mkdir test
542 cd test/
543 unzip /Users/yiannis/Downloads/webspa-05.zip
544 ls -l
545 cd ..
546 rm -fr test/
547 ls -l
548 mv _r0.5 web-spa-0.5
549 ls -l web-spa-0.5/
550 zip -r webspa-05.zip web-spa-0.5
551 mv webspa-05.zip /Users/yiannis/Downloads/
552 mkdir test2
553 cd test2/
554 unzip /Users/yiannis/Downloads/webspa-05.zip
555 ls -l
556 cd web-spa-0.5/
557 ls -ltr
558 cd ..
559 cd ..
560 ls -l
561 zip -r webspa-05.zip web-spa-0.5
562 unzip webspa-05.zip -d /tmp/opt/
563 ls -ltr
564 rm -fr opt/
565 rm -fr test2/
566 rm webspa-05.zip
567 cp /Users/yiannis/Developer/web-spa/java/release/README /tmp/web-spa-0.5/README
568 zip -r webspa-05.zip web-spa-0.5
569 ls -ltr
570 unzip webspa-05.zip -d /tmp/final/
571 ls -ltr
572 rm -fr final/
573 ls -ltr
574 unzip webspa-05.zip -d /tmp/final/
575 rm -fr final/
576 unzip webspa-05.zip -d /Users/yiannis/Desktop/final
577 cd /Users/yiannis/Desktop/final/web-spa-0.5/
578 ls -ltra | more
579 ls -ltraR | more
580 ls -ltraR | more
581 cd ../..
582 rm -fr final/
583 cd /tmp/
584 ls -ltr
585 rm webspa-05.zip
586 cd web-spa-0.5/
587 find . -name .DS_Store -print
588 cd ..
589 find . -name .DS_Store -print
590 cd web-spa-0.5/
591 find -name .DS_Store -exec rm {} \;
592 find -name .DS_Store -exec "rm {}" \;
593 find -name .DS_Store -print
594 find . -name .DS_Store -exec rm {} \;
595 find . -name .DS_Store -print
596 cd ..
597 zip -r webspa-05.zip web-spa-0.5
598 unzip webspa-05.zip -d /Users/yiannis/Desktop/final-2
599 cd /Users/yiannis/Desktop/final-2/
600 ls -latrR | more
601 cd ..
602 ls -ltr
603 rm final-2/
604 rm -fr final-2/
605 cd /tmp
606 ls -l
607 du -h webspa-05.zip
608 cp webspa-05.zip /Users/yiannis/Desktop/
Needless to say, the above can be shortened, automated further, etc.
Given the request from the guys at PacketStorm for a copy of the source code with every submission to them, I propose we include the src/ folder but proceed to perhaps have an src.zip for:
523 cp -R /Users/yiannis/Developer/web-spa/java/src/ /tmp/_r0.5/src
The final structure should be agreed with the team for what the command 'unzip webspa-xx.zip' should produce.
The Maven assembly plugin will be used for this.
Assinged to Yiannis for testing
Extracting either the tar or zip files yields the correct directory structure with no hidden folders or directories that should not be there. This is:
-rw-r--r-- 1 yiannis wheel 408 5 Oct 21:04 webspa.sh
-rw-r--r-- 1 yiannis wheel 2539 5 Oct 21:04 README
-rw-r--r-- 1 yiannis wheel 35147 5 Oct 21:04 LICENSE
-rw-r--r-- 1 yiannis wheel 1002 5 Oct 21:04 INSTALL
drwxr-xr-x 5 yiannis wheel 170 11 Oct 10:34 src
drwxr-xr-x 5 yiannis wheel 170 11 Oct 10:34 docs
-rw-r--r-- 1 yiannis wheel 3789027 11 Oct 10:40 webspa-0.8-SNAPSHOT.jar
Perhaps in a future release we should replace src with an src.zip to avoid long directory structures being created upon extraction, as they tend to 'scare' the user.
This ticket is now fixed and verified.