일요일, 5월 26, 2024
HomeLanguagemaven-antrun-plugin 를 이용한 source내 문자열 바꾸기

maven-antrun-plugin 를 이용한 source내 문자열 바꾸기

maven-antrun-plugin 를 이용한 source내 문자열 바꾸기

 

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.8</version>
				<executions>
					<execution>
						<id>antrun4</id>
						<phase>prepare-package</phase>
						<configuration>
							<tasks>
								<replace token="(&quot;/images" value="(&quot;${cdn.url}/images"
									dir="${target.web.css.dir}">
									<include name="**/*" />
								</replace>
								<replace token="('/images" value="('${cdn.url}/images"
									dir="${target.web.css.dir}">
									<include name="**/*" />
								</replace>
								<replace token="(/images" value="(${cdn.url}/images"
									dir="${target.web.css.dir}">
									<include name="**/*" />
								</replace>
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

 

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular