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" encoding='UTF-8' ?> | |
| <project name="NomeDoSistema" basedir="." default="all"> | |
| <property file="build.properties" /> | |
| <!-- Importa antcontrib lib --> | |
| <taskdef resource="net/sf/antcontrib/antlib.xml"> | |
| <classpath> | |
| <pathelement location="lib/build/ant/ant-contrib-1.0b3.jar" /> | |
| </classpath> | |
| </taskdef> |
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 base.dbunit; | |
| import java.sql.Connection; | |
| public interface DbUnitManager { | |
| /** | |
| * Atualiza o banco com os dados do arquivo xml, porém não altera os | |
| * registros anteriormente inseridos no banco e que não existem no arquivo | |
| * xml. |
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 base.dbunit; | |
| import java.sql.DatabaseMetaData; | |
| import java.sql.SQLException; | |
| import javax.sql.DataSource; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.stereotype.Component; |
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 base.dbunit; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.sql.Connection; | |
| import java.sql.SQLException; | |
| import javax.sql.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
| java -jar tubaina-1.8-SNAPSHOT.jar --latex -i ~/Projetos/ProjetosTriad/livro-exemplo/* -o ~/Desktop/ -n "Documentacao Tubaina" | |
| Dentro do diretório do .tex gerado, executar o sh latex.sh book.tex | |
| java -jar ~/Programas/tubaina-1.8-SNAPSHOT/tubaina-1.8-SNAPSHOT.jar --latex -t ~/Projetos/ProjetosTriad/tubaina/templates/ -i ~/Projetos/ProjetosTriad/tubaina/docs/ -o ~/Desktop/temp/ -n "Projeto Teste" | |
| ~/Projetos/ProjetosTriad/tubaina/etc/latex.sh book.tex |
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
| set :application, "ProjetoEstudoRails" | |
| set :scm, :git | |
| set :scm_username, "handersonbf@gmail.com" | |
| set :repository, "git@github.com:handersonbf/ProjetoEstudoRails.git" | |
| set :branch, "master" | |
| set :git_enable_submodules, 1 | |
| set :deploy_to, "/home/deployer/apps/" |
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
| Instalando libs dependencias... | |
| sudo apt-get install libruby1.8 zlib1g-dev libssl-dev libreadline5-dev build-essential | |
| Outras dependências... | |
| sudo apt-get install git git-core curl gcc | |
| Executar comando... | |
| bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
| Adicionar no .bash_profile, acessando via nano ~/.bash_profile |
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
| Dado /^que tenho um contrato sem formacao$/ do | |
| @usuario = Factory :usuario | |
| cargo = Factory :cargo, | |
| :usuario => @usuario | |
| contrato = Factory :contrato, | |
| :nome => "Cliente02", | |
| :pis => 5.0, |
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
| # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. | |
| # It is recommended to regenerate this file in the future when you upgrade to a | |
| # newer version of cucumber-rails. Consider adding your own code to a new file | |
| # instead of editing this one. Cucumber will automatically load all features/**/*.rb | |
| # files. | |
| ENV["RAILS_ENV"] ||= "test" | |
| require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
| require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support |
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 br.com.itc.service.impl; | |
| import java.text.SimpleDateFormat; | |
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.Date; | |
| import java.util.HashSet; | |
| import java.util.List; | |
| import java.util.Set; |