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