Subversion Repositories bacoAlunos

Rev

Rev 2005 | Rev 2061 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2005 Rev 2060
Line 1... Line -...
1
#tomcat.home=C:/Users/Jorge/Documents/estg/cadeiras/EngSoft/material/apache-tomcat-5.5.27
-
 
2
tomcat.home=C:/Users/17210/Desktop/apache-tomcat-9.0.0.M6
1
#tomcat.home=C:/Users/Jorge/Documents/estg/cadeiras/EngSoft/material/apache-tomcat-5.5.27
3
#tomcat.home=C:/Users/Nox/Desktop/es/Desktop/apache-tomcat-9.0.0.M6
2
#tomcat.home=C:/Users/17210/Desktop/apache-tomcat-9.0.0.M6
4
#tomcat.common.lib=${tomcat.home}/common/lib
3
tomcat.home=C:/Users/Nox/Desktop/3ano/es/Desktop/apache-tomcat-9.0.0.M6
5
#tomcat.server.lib=${tomcat.home}/server/lib
4
#tomcat.common.lib=${tomcat.home}/common/lib
6
tomcat.common.lib=${tomcat.home}/lib
5
#tomcat.server.lib=${tomcat.home}/server/lib
7
tomcat.server.lib=${tomcat.home}/lib
6
tomcat.common.lib=${tomcat.home}/lib
8
tomcat.manager=http://localhost:8080/manager
7
tomcat.server.lib=${tomcat.home}/lib
9
 
8
tomcat.manager=http://localhost:8080/manager
10
app.path=project
9
 
11
tomcat.user=admin
10
app.path=project
12
tomcat.pass=admin
11
tomcat.user=admin
13
tomcat.war.filename=${app.path}.war
12
tomcat.pass=admin
14
 
13
tomcat.war.filename=${app.path}.war
15
#IF is ROOT use Nothing
14
 
16
#example for ROOT:
15
#IF is ROOT use Nothing
17
#        tomcat.context.path.install=/
16
#example for ROOT:
Line 23... Line 22...
23
#
22
#        web.path=/baco
24
web.path=/${app.path}
23
#
25
tomcat.context.path.install=/${app.path}
24
web.path=/${app.path}
26
 
25
tomcat.context.path.install=/${app.path}
27
build.dir.classes=build/ant/classes
26
 
-
 
27
 
-
 
28
 
-
 
29
 
-
 
30
 
-
 
31
#COISAS NOVAS
-
 
32
#0 - adicionar ao vosso build.propeties
-
 
33
#  build.dir.classes=build/ant/classes
-
 
34
#
-
 
35
#1 - Colocar as novas confs e criar o ficheiro jdbc.properties na /conf
-
 
36
# conteudo do jdbc.properties
-
 
37
#hibernate.connection.url=@database.connection.url@
-
 
38
#hibernate.connection.driver_class=com.mysql.jdbc.Driver
-
 
39
#hibernate.connection.username=@database.username@
-
 
40
#hibernate.connection.password=@database.password@
-
 
41
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
-
 
42
#
-
 
43
#2 - Alterar o hibernate cfg.xml para usar o database.connection.url o database.username e o database.password
-
 
44
#  <property name="hibernate.connection.url">@database.connection.url@</property>
-
 
45
#  <property name="hibernate.connection.username">@database.username@</property>
-
 
46
#  <property name="hibernate.connection.password">@database.password@</property>
-
 
47
#  <property name="show_sql">@hibernate.show.sql@</property>
-
 
48
#
-
 
49
#3 - adicionar esta configura��o ao compile no final da tarefa
-
 
50
#   <copy file="conf/jdbc.properties" todir="build/ant/classes/pt/estgp/es/exemplos/hibernate"/>
-
 
51
#   <replace file="build/ant/classes/pt/estgp/es/exemplos/hibernate/jdbc.properties">
-
 
52
#       <replacefilter token="@database.username@" value="${database.username}"/>
-
 
53
#       <replacefilter token="@database.password@" value="${database.password}"/>
-
 
54
#       <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
-
 
55
#   </replace>
-
 
56
#   <replace file="build/ant/classes/pt/estgp/es/exemplos/hibernate/hibernate.cfg.xml">
-
 
57
#       <replacefilter token="@database.username@" value="${database.username}"/>
-
 
58
#       <replacefilter token="@database.password@" value="${database.password}"/>
-
 
59
#       <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
-
 
60
#       <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/>
-
 
61
#   </replace>
-
 
62
#
-
 
63
#4 - Adicionar estas taskdefs ao libs.xml debaixo do path
-
 
64
#   <taskdef name="hibernatetool"
-
 
65
#       classname="org.hibernate.tool.ant.HibernateToolTask"
-
 
66
#       classpathref="pathref" classpath="${build.dir.classes}"/>
-
 
67
#   <taskdef name="schemaupdate"
-
 
68
#       classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
-
 
69
#       classpathref="pathref" classpath="${build.dir.classes}"/>
-
 
70
#
-
 
71
#5 - Adicionar estas tarefas ao build.xml
-
 
72
#<!--
-
 
73
#==========================================================================================
-
 
74
#GENERATE SQL SCRIPTS
-
 
75
#==========================================================================================
-
 
76
#-->
-
 
77
#
-
 
78
#
-
 
79
#
-
 
80
#<target name="generateUpdateHibernateSql" depends="compile">
-
 
81
#   <schemaupdate
-
 
82
#       properties="build/ant/classes/pt/estgp/es/exemplos/hibernate/jdbc.properties"
-
 
83
#       quiet="no"
-
 
84
#       text="no">
-
 
85
#       <fileset dir="src/java">
-
 
86
#           <include name="**/*.hbm.xml"/>
-
 
87
#       </fileset>
-
 
88
#   </schemaupdate>
-
 
89
#</target>
-
 
90
#
-
 
91
#<target name="generateHibernateDomainObjects">
-
 
92
#   <mkdir dir="src/gen"/>
-
 
93
#   <replace dir="src/java" value="">
-
 
94
#       <include name="**/*.hbm.xml"/>
-
 
95
#       <replacefilter token='&lt;timestamp source="db"' value="&lt;timestamp"/>
-
 
96
#   </replace>
-
 
97
#   <hibernatetool>
-
 
98
#       <configuration>
-
 
99
#           <fileset dir="src/java">
-
 
100
#               <include name="**/*.hbm.xml"/>
-
 
101
#           </fileset>
-
 
102
#       </configuration>
-
 
103
#       <hbm2java
-
 
104
#           jdk5="true"
-
 
105
#           ejb3="false"
-
 
106
#           destdir="src/gen"/>
-
 
107
#   </hibernatetool>
-
 
108
#   <delete>
-
 
109
#       <fileset dir="src/gen">
-
 
110
#           <include name="**/*Impl.java"/>
-
 
111
#       </fileset>
-
 
112
#   </delete>
-
 
113
#   <replace dir="src/java" value="">
-
 
114
#       <include name="**/*.hbm.xml"/>
-
 
115
#       <replacefilter token='&lt;timestamp' value='&lt;timestamp source="db"'/>
-
 
116
#   </replace>
-
 
117
#</target>
-
 
118
#
-
 
119
# 5 - Adicionar a pasta src/gen �s sources no IntelliJ
-
 
120
#
-
 
121
# 6 - Adicionar a pasta src/gen � compila��o no build.xml alterando o iajc para isto:
-
 
122
#<iajc  source="1.8" target="1.8" destdir="build/ant/classes" classpath="lib/aspectj/aspectjrt.jar" classpathref="pathref">
-
 
123
#    <sourceroots>
-
 
124
#        <pathelement location="src/java"/>
-
 
125
#        <pathelement location="src/gen"/>
-
 
126
#    </sourceroots>
-
 
127
#</iajc>
-
 
128
#
-
 
129
# Terminado
-
 
130
 
-
 
131
 
28
 
132
build.dir.classes=build/ant/classes
29
hibernate.show.sql=false
133
 
-
 
134
 
-
 
135
##database configuration
30
database.host=localhost
136
hibernate.show.sql=false
31
database.port=3307
137
database.host=localhost
32
database.catalog=teste
138
database.port=3306
33
database.username=root
139
database.catalog=bacoalunos
34
database.password=root
140
database.username=root
35
database.connection.url=jdbc:mysql://${database.host}:${database.port}/${database.catalog}?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true
141
database.password=root
36
 
-
 
37
Generated by GNU Enscript 1.6.5.2.
142
database.connection.url=jdbc:mysql://${database.host}:${database.port}/${database.catalog}?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true
-
 
143
 
-
 
144
pt.estgp.es.exemplos.hibernate.web.pluginSession.RegisterSession=pt.estgp.es.exemplos.hibernate.web.pluginSession.ServerRegisterSession
-
 
145
 
38
 
146
Generated by GNU Enscript 1.6.5.2.