1
2
3
4
5
6
7
8
9
10
11
12
13
__author__ = 'sanaes'
import psutil
 
def killUplusApp():
    killProcessName = ['SDSMan.exe','ComAgent.exe','DSCNTSRV.EXE','PIAgent.exe','PIProtectorNS64.exe','PISupervisor.exe','PaTray.exe','PaSvc.exe']
    for p in psutil.process_iter():
        for kpn in killProcessName:
            if p.name() == kpn:
                print p.kill
               # print p.terminate()
 
 
killUplusApp()
goal을 dependency:sources 이걸로 걸면 의존성 코드 소스가 셋팅 된다 플러그인 설정은
1
2
3
4
5
6
7
8
9
10
11
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-source-plugin</artifactId>
 <executions>
  <execution>
   <goals>
    <goal>jar</goal>
   </goals>
  </execution>
 </executions>
</plugin>
이렇게 해면 install 시 소스까지 같이 배포됨
1
2
3
4
5
<beans>
 <bean id="webscript.org.alfresco.demo.simple.get"
class="org.alfresco.module.demoscripts.SimpleWebScript" parent="webscript">
 </bean>
</beans>
java-backed로 개발시 웹스크립트 디플로이 폴더는 bean id 기준으로 만들어서 배포를 해야 된다.

+ Recent posts