This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [rotty@rotty-desktop (semantic-versioning *$) portal-trunk-github]$ ant clean start | |
| Buildfile: /home/rotty/SOBS/workspace/portal-trunk-github/build.xml | |
| clean: | |
| clean: | |
| clean: | |
| [delete] Deleting directory /home/rotty/SOBS/workspace/portal-trunk-github/portal-service/classes | |
| [delete] Deleting: /home/rotty/SOBS/workspace/portal-trunk-github/portal-service/portal-service.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -113,4 +113,12 @@ public class LuceneIndexSearcher extends BaseIndexSearcher { | |
| facets = searchContext.getFacets(); | |
| + if (facets.isEmpty()) { | |
| + return search( | |
| + searchContext.getSearchEngineId(), | |
| + searchContext.getCompanyId(), query, | |
| + searchContext.getSorts(), searchContext.getStart(), | |
| + searchContext.getEnd()); | |
| + } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Query stringQuery = StringQueryFactoryUtil.create("field:term^4"); | |
| BooleanClause clause = BooleanClauseFactoryUtil.create(searchContext, stringQuery, BooleanClauseOccur.SHOULD.toString()); | |
| searchContext.setBooleanClauses(new BooleanClause[] {clause}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> | |
| <display-name>jsf2-portlet</display-name> | |
| <context-param> | |
| <param-name>javax.faces.PROJECT_STAGE</param-name> | |
| <param-value>Development</param-value> | |
| </context-param> | |
| <context-param> | |
| <param-name>com.sun.faces.expressionFactory</param-name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.liferay.portal.servlet.filters.dynamiccss; | |
| import org.jruby.Ruby; | |
| import org.jruby.RubyObject; | |
| import org.jruby.javasupport.util.RuntimeHelpers; | |
| import org.jruby.runtime.builtin.IRubyObject; | |
| import org.jruby.javasupport.JavaUtil; | |
| import org.jruby.RubyClass; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AUI().use('aui-io', function(A) { | |
| var data = []; | |
| if(confirm('add custom data?')) { | |
| var start = prompt('start index'); | |
| var end = prompt('end index'); | |
| for (var i = start; i < end; i++) { | |
| data.push('Bookmark' + i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -125,8 +125,8 @@ String onClick = GetterUtil.getString((String)request.getAttribute("liferay-ui:t | |
| else { | |
| if (values[i].equals("»")) { | |
| - curURL = url + separator + param + "=" + values[0] + anchor; | |
| + curURL = url + separator + namespace + param + "=" + values[0] + anchor; | |
| } | |
| else { | |
| - curURL = url + separator + param + "=" + values[i] + anchor; | |
| + curURL = url + separator + namespace + param + "=" + values[i] + anchor; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <target name="jar" depends="compile"> | |
| <if> | |
| <not> | |
| <uptodate targetfile="${jar.file}.jar"> | |
| <srcfiles dir="classes" includes="**/*.*"/> | |
| </uptodate> | |
| </not> | |
| <then> | |
| <if> | |
| <available file="bnd.bnd" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -15,4 +15,6 @@ | |
| package com.liferay.portal.dao.jdbc.util; | |
| +import com.liferay.portal.tools.sourceformatter.SinceJava; | |
| + | |
| import java.io.PrintWriter; | |
| @@ -55,8 +57,6 @@ public class DataSourceWrapper implements DataSource { | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.liferay.test.jsonwebservice; | |
| import aQute.bnd.annotation.component.Component; | |
| import com.liferay.portal.kernel.jsonwebservice.JSONWebService; | |
| /** | |
| * @author Raymond Augé | |
| */ | |
| @Component( |