我有一个问题,我有一些JAXB生成的java文件,其间有众所周知的"package-info.java",它只包含2行代码,一个注释和一个包定义:
@javax.xml.bind.annotation.XmlSchema(namespace = "http://it.tms.project/input")
package it.tms.project.jaxb.input;
Run Code Online (Sandbox Code Playgroud)
现在,当编译此文件时会生成一个普通的.class文件,但是当我尝试对其进行模糊处理时,proguard不会将其添加到模糊的output.jar中,我想这是因为它不包含任何类或其他任何内容而没有其他java文件是指它.我已经尝试了一些proguard选项来摆脱这个问题,但没有一个是好的:
-keepparameternames
-keepattributes Exceptions,InnerClasses,Signature,SourceFile,EnclosingMethod
-keeppackagenames it.tms.project.jaxb.input
-dontshrink
-dontoptimize
-keepattributes *Annotation* (I thought this one would work but I was wrong)
-keepclassmembernames class * {
java.lang.Class class$(java.lang.String);
java.lang.Class class$(java.lang.String, boolean);
}
Run Code Online (Sandbox Code Playgroud)
现在我只需要一些选项来明确告诉proguard不要混淆我想要的文件,但只是将它添加到output.jar中,我该怎么做?请记住,"keep class*{}"之类的选项不起作用,因为该文件不包含任何类.感谢任何人的回答,请写完FORZA NAPOLI的留言!
我在SDL Tridion下本地化页面模板时犯了一个错误,我想取消本地化,但是当我右键单击它时,"unlocalize"选项不可用.我怎样才能做到这一点?还有其他方法可以取消本地化项目吗?谢谢你的回答.
我对Tridion开发很新,我遇到了第一个"基本"问题.我在TBB中编写了一个简单的C#代码片段(使用内容管理器文本编辑器),并且我尝试使用引擎,包和日志字段(因为我知道它们由Tridion提供)但我收到错误说"该名称在上下文中不存在".这是代码:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<div>
<!-- TemplateBeginRepeat name="Component.Fields.crociera" -->
<!-- TemplateBeginIf cond="prezzo<250" -->
Go to @@location@@<br/>
<!-- TemplateEndIf -->
<!-- TemplateEndRepeat -->
</div>
<%
String ts = DateTime.Now.ToString("d MMM yyyy");
Response.Write("<br/>"+ts);
engine.getSession();
%>
Run Code Online (Sandbox Code Playgroud)
当我保存TBB并发布页面时,我收到此错误:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'engine' does not exist in the current …Run Code Online (Sandbox Code Playgroud) 如何使用SDL Tridion 2009 GUI一次将页面发布到多个子出版物?
这是我想要实现的一个例子:我有一个名为"Global"的出版物,其中有一个名为home.aspx的页面,然后有两个子出版物(英国和美国).我想同时发布两个子home.aspx页面,有可能吗?