socket.bind(new InetSocketAddress("localhost", port));
socket.connect(new InetSocketAddress("localhost", port));
mvn -Pcustom compile
main:
[echo] Displaying value of 'something' property
[echo] [something]: 100500
mvn compile
main:
[echo] Displaying value of 'something' property
[echo] [something]: 42
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>toy</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description/>
<properties>
<something></something>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>Displaying value of 'something' property</echo>
<echo>[something]: ${something}</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<something>42</something>
</properties>
</profile>
<profile>
<id>custom</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<something>100500</something>
</properties>
</profile>
</profiles>
</project>
this.add(weekClassOne);
this.add(weekClassTwo);
ColumnOne extends JFrame
. добавьте BorderLayout.*
по усмотрениюString script =
String script = "var element = arguments[0];"
+ "var attribute = document.createAttribute('target');"
+ "attribute.value = '_blank';"
+ "element.setAttributeNode(attribute);";
((IJavaScriptExecutor)driver).ExecuteScript(script, element); // element это ваш инпут
element.Click();
и т.д.