Skip to content

Commit 71a62c4

Browse files
committed
Polishing.
Remove codeblocks in comments. See #1951
1 parent f58ea84 commit 71a62c4

File tree

1 file changed

+0
-76
lines changed
  • spring-data-rest-hal-explorer

1 file changed

+0
-76
lines changed

spring-data-rest-hal-explorer/pom.xml

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@
4646
<scope>provided</scope>
4747
</dependency>
4848

49-
<!--
50-
<dependency>
51-
<groupId>org.webjars</groupId>
52-
<artifactId>json-editor</artifactId>
53-
<version>${json-editor.version}</version>
54-
<scope>provided</scope>
55-
</dependency>
56-
-->
57-
5849
</dependencies>
5950

6051

@@ -97,24 +88,6 @@
9788
<outputDirectory>${project.build.directory}/hal-explorer</outputDirectory>
9889
</configuration>
9990
</execution>
100-
<!--
101-
<execution>
102-
<id>unpack-json-editor</id>
103-
<phase>process-resources</phase>
104-
<goals>
105-
<goal>unpack</goal>
106-
</goals>
107-
<configuration>
108-
<artifactItems>
109-
<artifactItem>
110-
<groupId>org.webjars</groupId>
111-
<artifactId>json-editor</artifactId>
112-
</artifactItem>
113-
</artifactItems>
114-
<outputDirectory>${project.build.directory}/json-editor</outputDirectory>
115-
</configuration>
116-
</execution>
117-
-->
11891
</executions>
11992
</plugin>
12093

@@ -132,61 +105,12 @@
132105
<copy todir="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer">
133106
<fileset dir="${project.build.directory}/hal-explorer/META-INF/resources/webjars/hal-explorer/${explorer.version}" />
134107
</copy>
135-
<!--
136-
<copy todir="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/vendor/js">
137-
<fileset dir="${project.build.directory}/json-editor/META-INF/resources/webjars/json-editor/${json-editor.version}" />
138-
</copy>
139-
<copy file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/explorer.html"
140-
tofile="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html" />
141-
<replace file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html">
142-
<replacefilter>
143-
<replacetoken><![CDATA[</body>]]></replacetoken>
144-
<replacevalue><![CDATA[
145-
<script id="dynamic-request-template" type="text/template">
146-
<div class="modal-header">
147-
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
148-
<h3>Create/Update</h3>
149-
</div>
150-
151-
<form class="non-safe" action="<%= href %>">
152-
<div class="modal-body" style="padding-top: 0px">
153-
<div id="jsoneditor"></div>
154-
155-
<div class="well well-small" style="padding-bottom: 0px;">
156-
<div class="container-fluid">
157-
<div class="row-fluid">
158-
<div class="control-group">
159-
<label class="control-label" style="display: inline-block; font-weight: bold;">Action:</label>
160-
<input name="method" type="text" class="method controls" style="width: 98%" value="POST" />
161-
<input name="url" type="text" class="url controls" style="width: 98%" value="<%= href %>" />
162-
</div>
163-
</div>
164-
</div>
165-
</div>
166-
</div>
167-
<div class="modal-footer">
168-
<button type="submit" class="btn btn-primary">Make Request</button>
169-
</div>
170-
</form>
171-
</script>
172-
173-
<script src="vendor/js/jsoneditor.js"></script>
174-
<script src="js/CustomPostForm.js"></script>
175-
176-
</body>]]>
177-
</replacevalue>
178-
</replacefilter>
179-
</replace>
180-
-->
181108
<replace file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html">
182109
<replacefilter>
183110
<replacetoken>The HAL explorer</replacetoken>
184111
<replacevalue>The HAL Explorer (for Spring Data REST)</replacevalue>
185112
</replacefilter>
186113
</replace>
187-
<!--
188-
<delete file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/explorer.html" />
189-
-->
190114
</target>
191115
</configuration>
192116
</execution>

0 commit comments

Comments
 (0)