This file contains 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
Adicionar no pom: | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-core</artifactId> | |
<version>2.11.0</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> |
This file contains 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
mvn install:install-file -Dfile=./lib/axis.jar -DgroupId=local-deps -DartifactId=axis -Dversion=local -Dpackaging=jar -DlocalRepositoryPath=./lib/repo | |
mvn install:install-file -Dfile=./lib/commons-logging-1.0.2.jar -DgroupId=local-deps -DartifactId=commons-logging -Dversion=local -Dpackaging=jar -DlocalRepositoryPath=./lib/repo | |
mvn install:install-file -Dfile=./lib/ejb3-persistence.jar -DgroupId=local-deps -DartifactId=ejb3-persistence -Dversion=local -Dpackaging=jar -DlocalRepositoryPath=./lib/repo |
This file contains 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
import org.jboss.weld.environment.se.Weld; | |
import org.jboss.weld.environment.se.WeldContainer; | |
import org.junit.runner.notification.RunNotifier; | |
import org.junit.runners.BlockJUnit4ClassRunner; | |
import org.junit.runners.model.FrameworkMethod; | |
import org.junit.runners.model.InitializationError; | |
public class ECLRunner extends BlockJUnit4ClassRunner { | |
private Integer testsLeft; |
This file contains 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
desc "Salva arquivos em xml" | |
task :export => :environment do | |
require 'builder' | |
docs = Document.all | |
index = 1 | |
docsarray = [] | |
docs.each do |doc| | |
docsarray.push(doc) | |
if docsarray.size % 1000 == 0 | |
save_xml("documents-rkb-" + index.to_s, docsarray) |
This file contains 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
ScriptEngineManager mgr = new ScriptEngineManager(); | |
String expression = "if( (((((4 == 1) && 'USER_ID' != '1') && 'ON_GOING' == 'ON_GOING') || 1381374000000 != 1381374000000)){ resut = true ; } else { result = false; }" | |
ScriptEngine jsEngine = mgr.getEngineByName("JavaScript"); | |
boolean result = false; | |
try { | |
result = (Boolean) jsEngine.eval(expression); |
This file contains 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
describe "#list" do | |
it "list attribute as ruby object" do | |
attrs = @controller.list_attributes | |
attrs.each do |a| | |
a.should be_an_instance_of Attribute | |
end | |
end | |
it "list attribute in xml format" do | |
xml = @controller.list_attributes(:xml) |
This file contains 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
capacidade.turma=10 | |
usuario=secretaria | |
senha=segredo | |
papel=admin |
This file contains 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
<script> | |
$(function() { | |
$( "#tabs" ).tabs(); | |
}); | |
</script> | |
</head> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<title>jQuery UI Example Page</title> | |
<!-- dependencias das tabs --> | |
<!-- | |
<link type="text/css" href="css/meucss.css" rel="stylesheet" /> | |
--> |
This file contains 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
$.noConflict(); | |
jQuery(document).ready(function($) { | |
if($("#mytabs") == undefined)){ | |
alert("nao achei as tabs") | |
}else{ | |
//cria tabs a partir da ul com id=mytabs | |
//determina o conteudo das divs | |
//dentro da div com id=mypaneltabs | |
$("#mytabs").tabs("#mypaneltabs > div", {initialIndex:2}) | |
NewerOlder