小编wha*_*ong的帖子

无法从Eclipse,android中删除虚拟设备

我有多个虚拟设备,其中一些无法删除.

错误信息是

android虚拟设备XXX当前正在模拟器中运行,无法删除

当我刚刚重启Ubuntu并且只启动Eclipse时.

android android-emulator

141
推荐指数
4
解决办法
3万
查看次数

Eclipse,SVN麻烦

A已从一个项目复制了一个文件夹,该文件由系统生成到另一个项目.现在我想提交项目中的所有内容,文件夹被复制到.我得到的是(复制的文件夹在文件夹/ webapp中):

org.tigris.subversion.javahl.ClientException:尝试锁定已锁定的目录svn:工作副本'/ home/user/webshop/webshop-impl/src/main/webapp'已锁定

好的,我尝试了Team-> Cleanup并得到了:

org.tigris.subversion.javahl.ClientException: Path is not a working copy directory
svn: '/home/user/webshop/webshop-impl/src/main/webapp/gwtmodules' is not a working copy directory

org.tigris.subversion.javahl.ClientException: Path is not a working copy directory
svn: '/home/user/webshop/webshop-impl/src/main/webapp/gwtmodules' is not a working copy directory
Run Code Online (Sandbox Code Playgroud)

这个日食SVN客户端长时间使用这个令人困惑的底格里斯异常=)

请帮忙咨询:)我做错了什么?

eclipse subclipse svn

14
推荐指数
2
解决办法
2万
查看次数

Maven的.组装项目时如何包含特定文件夹或文件取决于它是开发还是生产?

使用maven-assembly-plugin

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.1</version>
<configuration>
 <descriptors>
  <descriptor>descriptor.xml</descriptor>
 </descriptors>
 <finalName>xxx-impl-${pom.version}</finalName>
 <outputDirectory>target/assembly</outputDirectory>
 <workDirectory>target/assembly/work</workDirectory>
</configuration>
Run Code Online (Sandbox Code Playgroud)

在descriptor.xml文件中我们可以指定

    <fileSets>
    <fileSet>
        <directory>src/install</directory>
        <outputDirectory>/</outputDirectory>
    </fileSet>
</fileSets>
Run Code Online (Sandbox Code Playgroud)

是否可以根据配置文件包含此文件夹或子文件夹中的特定文件?或者其他一些方式......

像这样:

<profiles>
    <profile>
        <id>dev</id>
        <activation>
            <activeByDefault>false</activeByDefault>
        </activation>
        <build>
            <resources>
                <resource>
                    <directory>src/install/dev</directory>
                    <includes>
                        <include>**/*</include>
                    </includes>
                </resource>
            </resources>
        </build>
    </profile>
    <profile>
        <id>prod</id>
        <build>
            <resources>
                <resource>
                    <directory>src/install/prod</directory>
                    <includes>
                        <include>**/*</include>
                    </includes>
                </resource>
            </resources>
        </build>
    </profile>
</profiles>
Run Code Online (Sandbox Code Playgroud)

但它在包装时将资源放入罐中.但是,正如我上面已经提到的那样,我们需要把它放在拉链中:(谢谢!

maven-2 maven maven-assembly-plugin

7
推荐指数
1
解决办法
4万
查看次数

休眠.什么时候同一个实体可以在一个会话中加载两次?

有这样的问题.加载2个对象的集合(通过主键,使用标准).然后在循环中迭代它们.处理第一个对象时,距离此循环非常远的地方,是由与循环中的第二个对象相同的主键加载对象.在这里,我看到System.identityHashCode()对于这2个对象是不同的.当从循环处理第二个对象并尝试保存它时,我得到异常:

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:
Run Code Online (Sandbox Code Playgroud)

试图用简单的对象来模拟这个问题,加载,修改,再次通过PK加载,保存不同的事务传播-s我总是得到相同的对象实例...你能告诉我什么时候可以得到第二个对象实例会话由PK加载?

java hibernate

6
推荐指数
1
解决办法
2164
查看次数

为什么可以将任何对象转换为任何接口?

class A {}
interface Wtf{}


A a = new A();
Wtf wtf = (Wtf)a;
Run Code Online (Sandbox Code Playgroud)

是什么原因,为什么编译得很好?也在C#:D

java

-1
推荐指数
2
解决办法
109
查看次数