mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
Merge branch 'master' into sdk-4.0
This commit is contained in:
commit
b32a78b7b3
@ -35,6 +35,11 @@
|
|||||||
<source>src/main/assembly/file-mapping.properties</source>
|
<source>src/main/assembly/file-mapping.properties</source>
|
||||||
<filtered>false</filtered>
|
<filtered>false</filtered>
|
||||||
</file>
|
</file>
|
||||||
|
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||||
|
<file>
|
||||||
|
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
</file>
|
||||||
</files>
|
</files>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# Add here module-specific custom log4j.properties configuration
|
@ -35,6 +35,11 @@
|
|||||||
<source>src/main/assembly/file-mapping.properties</source>
|
<source>src/main/assembly/file-mapping.properties</source>
|
||||||
<filtered>false</filtered>
|
<filtered>false</filtered>
|
||||||
</file>
|
</file>
|
||||||
|
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||||
|
<file>
|
||||||
|
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
</file>
|
||||||
</files>
|
</files>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# Add here module-specific custom log4j.properties configuration
|
@ -50,10 +50,9 @@ public class DemoComponentIT extends AbstractAlfrescoIT {
|
|||||||
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
|
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
|
||||||
NodeRef companyHome = demoComponent.getCompanyHome();
|
NodeRef companyHome = demoComponent.getCompanyHome();
|
||||||
assertNotNull(companyHome);
|
assertNotNull(companyHome);
|
||||||
String companyHomeName = (String) getServiceRegistry().getNodeService().getProperty(
|
String companyHomePath = getServiceRegistry().getNodeService().getPath(companyHome).toPrefixString(getServiceRegistry().getNamespaceService());
|
||||||
companyHome, ContentModel.PROP_NAME);
|
assertNotNull(companyHomePath);
|
||||||
assertNotNull(companyHomeName);
|
assertEquals("/app:company_home", companyHomePath);
|
||||||
assertEquals("Company Home", companyHomeName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -284,6 +284,56 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Compress JavaScript files and store as *-min.js -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.alchim31.maven</groupId>
|
||||||
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||||
|
<version>1.5.1</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Compress the JS files under the assembly folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-assembly</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sourceDirectory>${project.basedir}/src/main/assembly/web</sourceDirectory>
|
||||||
|
<outputDirectory>${project.basedir}/src/main/assembly/web</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/META-INF/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Compress the JS files under the resources folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-resources</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<!-- Hot reloading with JRebel -->
|
<!-- Hot reloading with JRebel -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.zeroturnaround</groupId>
|
<groupId>org.zeroturnaround</groupId>
|
||||||
|
@ -300,6 +300,56 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Compress JavaScript files and store as *-min.js -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.alchim31.maven</groupId>
|
||||||
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||||
|
<version>1.5.1</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Compress the JS files under the assembly folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-assembly</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sourceDirectory>${project.basedir}/src/main/assembly/web</sourceDirectory>
|
||||||
|
<outputDirectory>${project.basedir}/src/main/assembly/web</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/META-INF/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Compress the JS files under the resources folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-resources</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Build an AMP if 3rd party libs are needed by the extensions
|
Build an AMP if 3rd party libs are needed by the extensions
|
||||||
JARs are the default artifact produced in your modules, if you want to build an amp for each module
|
JARs are the default artifact produced in your modules, if you want to build an amp for each module
|
||||||
|
@ -35,6 +35,11 @@
|
|||||||
<source>src/main/assembly/file-mapping.properties</source>
|
<source>src/main/assembly/file-mapping.properties</source>
|
||||||
<filtered>false</filtered>
|
<filtered>false</filtered>
|
||||||
</file>
|
</file>
|
||||||
|
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||||
|
<file>
|
||||||
|
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
</file>
|
||||||
</files>
|
</files>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# Add here module-specific custom log4j.properties configuration
|
@ -163,6 +163,56 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Compress JavaScript files and store as *-min.js -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>net.alchim31.maven</groupId>
|
||||||
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||||
|
<version>1.5.1</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Compress the JS files under the assembly folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-assembly</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sourceDirectory>${project.basedir}/src/main/assembly/web</sourceDirectory>
|
||||||
|
<outputDirectory>${project.basedir}/src/main/assembly/web</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/META-INF/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Compress the JS files under the resources folder -->
|
||||||
|
<execution>
|
||||||
|
<id>compress-resources</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compress</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/webscripts/**</exclude>
|
||||||
|
<exclude>**/site-webscripts/**</exclude>
|
||||||
|
<exclude>**/*.lib.js</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*-min.js</exclude>
|
||||||
|
<exclude>**/*-min.css</exclude>
|
||||||
|
</excludes>
|
||||||
|
<force>true</force>
|
||||||
|
<jswarn>false</jswarn>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
@ -35,6 +35,11 @@
|
|||||||
<source>src/main/assembly/file-mapping.properties</source>
|
<source>src/main/assembly/file-mapping.properties</source>
|
||||||
<filtered>false</filtered>
|
<filtered>false</filtered>
|
||||||
</file>
|
</file>
|
||||||
|
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||||
|
<file>
|
||||||
|
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||||
|
<filtered>false</filtered>
|
||||||
|
</file>
|
||||||
</files>
|
</files>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# Add here module-specific custom log4j.properties configuration
|
@ -116,7 +116,7 @@ public class AlfrescoTestRunner extends BlockJUnit4ClassRunner {
|
|||||||
protected void callProxiedChild(FrameworkMethod method, RunNotifier notifier, Description desc) {
|
protected void callProxiedChild(FrameworkMethod method, RunNotifier notifier, Description desc) {
|
||||||
notifier.fireTestStarted(desc);
|
notifier.fireTestStarted(desc);
|
||||||
|
|
||||||
String className = method.getMethod().getDeclaringClass().getCanonicalName();
|
String className = this.getTestClass().getJavaClass().getCanonicalName();
|
||||||
String methodName = method.getName();
|
String methodName = method.getName();
|
||||||
if (null != methodName) {
|
if (null != methodName) {
|
||||||
className += "#" + methodName;
|
className += "#" + methodName;
|
||||||
|
@ -140,6 +140,11 @@
|
|||||||
<artifactId>zt-zip</artifactId>
|
<artifactId>zt-zip</artifactId>
|
||||||
<version>1.11</version>
|
<version>1.11</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.schlichtherle.truezip</groupId>
|
||||||
|
<artifactId>truezip-kernel</artifactId>
|
||||||
|
<version>7.7.9</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<reporting>
|
<reporting>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user