You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2016/04/05 13:38:50 UTC

[3/4] isis git commit: ISIS-1335: adding some further screencasts

ISIS-1335: adding some further screencasts


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/b6e2d7bf
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/b6e2d7bf
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/b6e2d7bf

Branch: refs/heads/master
Commit: b6e2d7bf1f83060c98ab2f0d8d51d98e3a07b505
Parents: d7797be
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Tue Apr 5 11:04:59 2016 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Tue Apr 5 11:42:52 2016 +0100

----------------------------------------------------------------------
 adocs/documentation/pom.xml                     | 62 ++++++++-------
 .../src/main/asciidoc/screencasts.adoc          | 79 ++++++++++++++++++++
 2 files changed, 112 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/b6e2d7bf/adocs/documentation/pom.xml
----------------------------------------------------------------------
diff --git a/adocs/documentation/pom.xml b/adocs/documentation/pom.xml
index 216981c..783c7f1 100644
--- a/adocs/documentation/pom.xml
+++ b/adocs/documentation/pom.xml
@@ -53,8 +53,8 @@
 
         <build.dir>${project.basedir}/target/site</build.dir>
 
-        <isis-site.dir>${project.basedir}/../../../isis-site/content</isis-site.dir>
-        <redirects.dir>${project.basedir}/../redirects/content</redirects.dir>
+        <isis-site.dir>../../../isis-site/content</isis-site.dir>
+        <redirects.dir>../redirects/content</redirects.dir>
         <message>updating content (built from adocs/documentation in isis.git repo)</message>
     </properties>
 
@@ -420,39 +420,43 @@
             <build>
                 <plugins>
                     <plugin>
-                        <artifactId>maven-antrun-plugin</artifactId>
-                        <version>1.8</version>
+                        <groupId>org.codehaus.gmaven</groupId>
+                        <artifactId>groovy-maven-plugin</artifactId>
+                        <version>2.0</version>
                         <executions>
                             <execution>
                                 <id>install</id>
                                 <phase>install</phase>
-                                <configuration>
-                                    <target>
-                                        <echo message=""/>
-                                        <echo message=""/>
-                                        <echo message="git add all content"/>
-                                        <echo message=""/>
-                                        <exec executable="git" dir="${isis-site.dir}">
-                                            <arg value="add"/>
-                                            <arg value="--all"/>
-                                            <arg value="."/>
-                                        </exec>
-
-                                        <echo message=""/>
-                                        <echo message=""/>
-                                        <echo message="git commit -m '${message}' "/>
-                                        <echo message=""/>
-                                        <exec executable="git" dir="${isis-site.dir}">
-                                            <arg value="commit"/>
-                                            <arg value="-m"/>
-                                            <arg value="${message}"/>
-                                        </exec>
-                                        <echo message=""/>
-                                    </target>
-                                </configuration>
                                 <goals>
-                                    <goal>run</goal>
+                                    <goal>execute</goal>
                                 </goals>
+                                <configuration>
+                                    <source>
+                                        def siteDir = new File("${isis-site.dir}", "..")
+
+                                        "git add content --all".execute(null, siteDir).in.text
+                                        "git reset content/guides".execute(null, siteDir).in.text
+
+                                        def gitStatusOutput = "git status --porcelain".execute(null, siteDir).in.text
+
+                                        def lines = gitStatusOutput.readLines()
+                                        lines.each{ line ->
+                                            def file=line.drop(3)
+                                            if(file.endsWith(".html")) {
+                                                def pdfFile = file.replaceAll(".html",".pdf")
+                                                println file
+                                                "git add $file".execute(null, siteDir).in.text
+                                                println pdfFile
+                                                "git add $pdfFile".execute(null, siteDir).in.text
+                                            }
+                                        }
+
+                                        "git commit -m '${message}'".execute(null, siteDir).in.text
+                                        "git reset --hard".execute(null, siteDir).in.text
+
+                                        return null
+                                    </source>
+                                </configuration>
                             </execution>
                         </executions>
                     </plugin>

http://git-wip-us.apache.org/repos/asf/isis/blob/b6e2d7bf/adocs/documentation/src/main/asciidoc/screencasts.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/screencasts.adoc b/adocs/documentation/src/main/asciidoc/screencasts.adoc
index 9d27f71..76229e9 100644
--- a/adocs/documentation/src/main/asciidoc/screencasts.adoc
+++ b/adocs/documentation/src/main/asciidoc/screencasts.adoc
@@ -377,6 +377,85 @@ You can also find some earlier screencasts (for older versions of the framework)
 
 |video::fYJjXAepWAs[youtube,width="560px",height="315px"]
 
+|===
+
+
+
+== Property and parameter choices
+
+[cols="2a,2a"]
+|===
+
+
+|How to provide a set of xref:rgcms.adoc#_rgcms_methods_prefixes_choices[choices] (a drop-down list) when editing a property. +
+(v1.12.0)
+
+|video::cQ06PoMNDPw[youtube,width="560px",height="315px"]
+
+
+|How to provide a set of xref:rgcms.adoc#_rgcms_methods_prefixes_choices[choices] (a drop-down list) when invoking an action. +
+(v1.12.0)
+
+|video::afEnYKljBQs[youtube,width="560px",height="315px"]
+
+
+|How to use the xref:rgcms.adoc#_rgcms_methods_prefixes_choices[choices] supporting methods as a source for default values within a xref:ugtst.adoc#_ugtst_fixture-scripts[fixture script]. +
+(v1.12.0)
+
+|video::fKo6aTPK-gk[youtube,width="560px",height="315px"]
+
+
+|How to use an enum for choices (drop down list) for both a property or an action parameter. +
+(v1.12.0)
+
+|video::ZWOzmwCJVzA[youtube,width="560px",height="315px"]
+
+
+
+|===
+
+
+
+== Hiding columns
+
+[cols="2a,2a"]
+|===
+
+
+|How to hide properties as columns in tables (parented collections or standalone collections), using the dynamic XML layout (equivalent to xref:rgant.adoc#_rgant_PropertyLayout_hidden[`@PropertyLayout#hidden()`]) . +
+(v1.12.0)
+
+|video::1SCyBlMM2Bo[youtube,width="560px",height="315px"]
+
+
+|How to hide properties as columns in tables, using CSS. +
+(v1.12.0)
+
+|video::H11yby1Xkbc[youtube,width="560px",height="315px"]
+
+
+
+|===
+
+
+
+== Fixture scripts defaults / fake data
+
+[cols="2a,2a"]
+|===
+
+
+|Using the xref:rgcms.adoc#_rgcms_classes_super_FixtureScript[`FixtureScript`] `defaultParam(...)` method to reflectively default parameters to fixture scripts that have not been set by the caller. +
+(v1.12.0)
+
+|video::NKaR7ZedI8E[youtube,width="560px",height="315px"]
+
+
+
+|Using the (non-ASF) http://github.com/isisaddons/isis-module-fakedata[Isis addons' fakedata] module's `FakeDataService` to provide fake (random) names within a fixture script. +
+(v1.12.0)
+
+|video::-jMiD9n1L5U[youtube,width="560px",height="315px"]
 
 
 |===