javadoc -d destdir -subpackages package_a package_b
wtorek, 16 czerwca 2015
wtorek, 26 maja 2015
Wyłączenie cache HTML/JS
<meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="now" /> <meta http-equiv="last modified" content="now" /> <meta http-equiv="expires" content="0" />
czwartek, 21 maja 2015
log4j vs. log4j xml config
log4j.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug="false" xmlns:log4j='http://jakarta.apache.org/log4j/'> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%t] %C{2}#%M (%F:%L) - %m%n" /> </layout> </appender> <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> <param name="append" value="true" /> <param name="encoding" value="UTF-8" /> <param name="file" value="logs/myapp/myapp.log" /> <param name="DatePattern" value="'.'yyyy-MM-dd" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%t] %C{2}#%M (%F:%L) - %m%n" /> </layout> </appender> <logger name="_poligon" additivity="false"> <level value="debug" /> <appender-ref ref="CONSOLE" /> <appender-ref ref="FILE" /> </logger> </log4j:configuration>log4j2.xml:
<?xml version="1.0" encoding="UTF-8"?> <Configuration monitorInterval="60"> <Properties> <Property name="myapp.logs.dir">logs/myapp</Property> <Property name="myapp.pattern.layout">%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%t] %C{2}#%M (%F:%L) - %m%n </Property> <Property name="myapp.file.timepattern">%d{yyyy-MM-dd}</Property> <Property name="myapp.file.name">myapp</Property> </Properties> <Appenders> <Console name="CONSOLE" target="SYSTEM_OUT"> <PatternLayout pattern="${myapp.pattern.layout}" /> </Console> <RollingFile name="FILE" fileName="${myapp.logs.dir}/${myapp.file.name}.log" filePattern="${myapp.logs.dir}/${myapp.file.name}-${myapp.file.timepattern}.log.gz"> <PatternLayout pattern="${myapp.pattern.layout}" /> <Policies> <TimeBasedTriggeringPolicy /> </Policies> </RollingFile> </Appenders> <Loggers> <Logger name="myapp" level="debug" additivity="false"> <AppenderRef ref="CONSOLE" /> <AppenderRef ref="FILE" /> </Logger> </Loggers> </Configuration>
czwartek, 2 kwietnia 2015
Pominięcie przetwarzania komentarzy w JSF
W web.xml, należy ustawić parametr "facelets.SKIP_COMMENTS" na wartość "true".
<context-param> <param-name>facelets.SKIP_COMMENTS</param-name> <param-value>true</param-value> </context-param>źródło
czwartek, 5 marca 2015
Kody Java UTF polskich znaków diakrytycznych
Ą - \u0104 ą - \u0105 Ę - \u0118 ę - \u0119 Ć - \u0106 ć - \u0107 Ł - \u0141 ł - \u0142 Ń - \u0143 ń - \u0144 Ó - \u00d3 ó - \u00f3 Ś - \u015a ś - \u015b Ź - \u0179 ź - \u017a Ż - \u017b ż - \u017c
Subskrybuj:
Posty (Atom)