Skip to content

Commit

Permalink
Merge pull request #1 from bonitasoft/feat/BPO-213-Add-case-list
Browse files Browse the repository at this point in the history
feat (case list) integrate case list
  • Loading branch information
rbioteau authored Oct 18, 2019
2 parents 076f746 + 3cf6262 commit 819e3b0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 8 deletions.
2 changes: 1 addition & 1 deletion applications/bonita-user-application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<displayName>Bonita User Application</displayName>
<applicationPages>
<applicationPage customPage="custompage_tasklist" token="taskList"/>
<applicationPage customPage="custompage_caselistBonita" token="caseList"/>
<applicationPage customPage="custompage_caselistBonitaV1" token="caseList"/>
<applicationPage customPage="custompage_processlistBonita" token="processList"/>
</applicationPages>
<applicationMenus>
Expand Down
63 changes: 56 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

<properties>
<web.pages.dir>web_page</web.pages.dir>
<living-app-page-id>LayoutBonitaV3</living-app-page-id>
<living-app-layout-id>LayoutBonitaV3</living-app-layout-id>
<user-app-caselist-id>caselistBonitaV1</user-app-caselist-id>
<web.widgets.dir>web_widgets</web.widgets.dir>
</properties>

Expand Down Expand Up @@ -43,6 +44,27 @@
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>get-bonita-user-caselist-page</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.bonitasoft.web.pages</groupId>
<artifactId>page-user-case-list</artifactId>
<version>${project.version}</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<includes>resources/page.json,resources/assets/**</includes>
<outputDirectory>${web.pages.dir}/${user-app-caselist-id}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
<execution>
<id>get-bonita-layout-page</id>
<phase>generate-sources</phase>
Expand All @@ -59,7 +81,7 @@
</artifactItem>
</artifactItems>
<includes>resources/page.json,resources/assets/**</includes>
<outputDirectory>${web.pages.dir}/${living-app-page-id}</outputDirectory>
<outputDirectory>${web.pages.dir}/${living-app-layout-id}</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
Expand Down Expand Up @@ -122,14 +144,29 @@
<goal>run</goal>
</goals>
</execution>
<execution>
<id>move-user-caselist-page-resources</id>
<phase>generate-sources</phase>
<configuration>
<target>
<move todir="${web.pages.dir}/${user-app-caselist-id}"
failonerror="true">
<fileset dir="${web.pages.dir}/${user-app-caselist-id}/resources" />
</move>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>move-layout-page-resources</id>
<phase>generate-sources</phase>
<configuration>
<target>
<move todir="${web.pages.dir}/${living-app-page-id}"
<move todir="${web.pages.dir}/${living-app-layout-id}"
failonerror="true">
<fileset dir="${web.pages.dir}/${living-app-page-id}/resources" />
<fileset dir="${web.pages.dir}/${living-app-layout-id}/resources" />
</move>
</target>
</configuration>
Expand Down Expand Up @@ -160,12 +197,24 @@
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<executions>
<execution>
<id>rename-user-caselist-page-json-file</id>
<phase>generate-sources</phase>
<configuration>
<sourceFile>${web.pages.dir}/${user-app-caselist-id}/page.json</sourceFile>
<destinationFile>${web.pages.dir}/${user-app-caselist-id}/${user-app-caselist-id}.json</destinationFile>
<overWrite>true</overWrite>
</configuration>
<goals>
<goal>rename</goal>
</goals>
</execution>
<execution>
<id>rename-layout-page-json-file</id>
<phase>generate-sources</phase>
<configuration>
<sourceFile>${web.pages.dir}/${living-app-page-id}/page.json</sourceFile>
<destinationFile>${web.pages.dir}/${living-app-page-id}/${living-app-page-id}.json</destinationFile>
<sourceFile>${web.pages.dir}/${living-app-layout-id}/page.json</sourceFile>
<destinationFile>${web.pages.dir}/${living-app-layout-id}/${living-app-layout-id}.json</destinationFile>
<overWrite>true</overWrite>
</configuration>
<goals>
Expand Down Expand Up @@ -209,4 +258,4 @@
</plugins>
</build>

</project>
</project>

0 comments on commit 819e3b0

Please sign in to comment.