Skip to content

Instantly share code, notes, and snippets.

@DemkaAge
DemkaAge / some_pom.xml
Created December 3, 2013 17:47
Generate public css interface (gwt-maven-plugin)
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.2</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
@DemkaAge
DemkaAge / some_css.css
Last active December 30, 2015 05:29
Gwt. LESS. Maven. Chain: * .less to .css (lesscss-maven-plugin) * .css to almost .css (replacer plugin) * .almost .css to gwtResources
@sprite
.mainBackground {
gwt-image: "mainBackground";
background-repeat: repeat;
}
@sprite
.logoBackground {
gwt-image: "logoBackground";
overflow: hidden;
@DemkaAge
DemkaAge / pom.xml
Last active August 29, 2015 13:56
was-utils-plugin
<!--Путь к сфере, дле генерации EJB стаб классов. Если сферы нет - генерация отвалится.-->
<was-utils.wasHome>c:/Program Files (x86)/IBM/WebSphere/AppServer</was-utils.wasHome>
...
<plugin>
<!--Генерация EJB стаб классов для сферы-->
<groupId>ru.brbpm.plugins</groupId>
<artifactId>was-utils-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
@DemkaAge
DemkaAge / pom.xml
Created February 4, 2014 06:29
Was 7.0 stab generation.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>compile</id>
<phase>package</phase>
<configuration>
<target>
@DemkaAge
DemkaAge / gist:8997024
Last active August 29, 2015 13:56
GWT-2.6.0-rc1 JSR-303 validation maven dependencies
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
@DemkaAge
DemkaAge / validation.xml
Last active August 29, 2015 13:56
JSR-303 validation config xml META-INF
<?xml version="1.0" encoding="UTF-8"?>
<validation-config
xmlns="http://jboss.org/xml/ns/javax/validation/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/configuration validation-configuration-1.0.xsd">
<message-interpolator><pathTo>CustomMessageInterpolator</message-interpolator>
</validation-config>
@DemkaAge
DemkaAge / UTF8Control.java
Last active June 4, 2020 10:36
ResourceBundle UTF-8 Control class
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Locale;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
@DemkaAge
DemkaAge / MessageInterpolator.java
Last active August 29, 2015 13:56
UTF8Control and part of PlatformResourceBundleLocator.class
private ResourceBundle loadBundle(ClassLoader classLoader, Locale locale, String message) {
ResourceBundle rb = null;
try {
rb = ResourceBundle.getBundle(
bundleName,
locale,
classLoader,
new UTF8Control());
}
catch ( MissingResourceException e ) {
@DemkaAge
DemkaAge / CustomMessageInterpolator.java
Created February 14, 2014 11:29
JSR-303 custom MessageInterpolator
public class CustomMessageInterpolator extends ResourceBundleMessageInterpolator {
public static final String NEW_PATH_VALIDATION_MESSAGES = "<newPath>/ValidationMessages";
public CustomMessageInterpolator() {
super(new CustomPlatformResourceBundleLocator(NEW_PATH_VALIDATION_MESSAGES));
}
}
package ru.brbpm.lecm.shared.filenet.ce.impl.core;
import ru.brbpm.lecm.shared.filenet.ce.collection.CeStringList;
import ru.brbpm.lecm.shared.filenet.ce.constants.CePropertyNames;
import ru.brbpm.lecm.shared.filenet.ce.core.CeContainable;
import ru.brbpm.lecm.shared.filenet.ce.core.CeFolder;
import ru.brbpm.lecm.shared.filenet.ce.core.CeRepositoryObject;
import java.util.Date;