среда, 30 мая 2012 г.

Git + Intellij IDEA

какая же крутая поддержки git в идее: все летает, все  под рукой, просто и удобно, на своих местах, очень юзабельно.
Вызов любой сложной дорогостоящей операции - секунда, две в худшем случае.

p.s. svn, perforce-ы и иже с ними - как страшный сон =)

вторник, 22 мая 2012 г.

maven bugs

все-таки windows для java разработки не тру, даже под cygwin: maven + git + cygwin = пара часов поисков веселого бага - MRELEASE-581 Git relative pathing broken with release plugin

пятница, 18 мая 2012 г.

yet another gotcha this week )

when running scp task from ant (1.8) script - you need place jsch-0.1.48.jar to ant classpath (via IDE e.g.), otherwise you'll get "class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found" (SO).

And in case of running it from maven - instead of standart form:
          
                maven-antrun-plugin
                1.7
                
                    
                        deploy
                        
                            
                                
                                       ....
                                
                            
                        
                        
                            run
                        
                    
                
            
you'll need to add the following dependencies:
          
                maven-antrun-plugin
                1.7

                
                    
                        org.apache.ant
                        ant-jsch
                        1.7.0
                    
                    
                        com.jcraft
                        jsch
                        0.1.48
                    
                

                
                    
                        deploy
                        
                            
                                
                                       ....
                                
                            
                        
                        
                            run
                        
                    
                
            
otherwise you'll get in maven smth like that:


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project ...
ildException has occured: Problem: failed to create task or type scp
[ERROR] Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found.
[ERROR] This looks like one of Ant's optional components.
[ERROR] Action: Check that the appropriate optional JAR exists in
[ERROR] -ANT_HOME\lib
[ERROR] -the IDE Ant configuration dialogs
[ERROR]
[ERROR] Do not panic, this is a common problem.
[ERROR] The commonest cause is a missing JAR.
[ERROR]
[ERROR] This is not a bug; it is a configuration problem
[ERROR]
[ERROR] around Ant part ...<scp ....
[ERROR] -> [Help 1]

faced gotcha

you must use special openssh format key when running scp from ant: http://netpenthe.wordpress.com/2007/02/02/jschexception-invalid-privatekey-ant-scp/

ну дела...

такой баг нашли: http://stackoverflow.com/questions/10620680/why-volatile-in-java-5-doesnt-synchronize-cached-copies-of-variables-with-main

слабо верится что только сейчас всплыло ведь jsr133 вышла аж в 2004 году, думаю поломали просто.